SlideShare a Scribd company logo
-
      DAC

    DBA-
Underutilized
               hardware




               Overburdened
               Administrators




1990   2000           2010
Having fun with deployment
DAC   •
      •
      •
SQL Explore 2012 - Meir Dudai: DAC
SQL Explore 2012 - Meir Dudai: DAC
Challenges
                       Development

                   • No uniform DB
                     project system and
                     workflow


    Deployment
                                               Management
• DBAs and
                                          • Difficult to centrally
  Developers work in
                                            control the
  silos
                                            environment
• Time consuming and
  error prone
Investments
                         Development

                 • Data-tier Application
                   project
                 • Integrated editor, debugger,
                   IntelliSense, policy designer
                 • Static code analysis, build
                   service
    Deployment                                     Management

• Easier to deploy                           • Manage @ Scale: SQL
  and upgrade Data-                            Server Control Point
  tier Apps from VS                          • Visualize resource
  and SSMS (and now                            utilization at the
  SSDT)                                        instance & application
                                               level
Concepts

.dacpac = unit of deployment (data-
tier application + developer intent)            Schema
                                         LOGICAL
Data-tier Application Component           Tables,
                                                       PHYSICA
                                                           L
   • Improves collaboration between       Views,         Users,
                                          Procs,        Logins,
     developer and DBA                     UDFs         Indexes
   • Moves developers from a
     procedural model to a declarative
     model                               DAC Deployment Profile
                                         Deployment Requirements,
                                           Management Policies
Data-Tier Applications
Data-Tier Applications
   • Often referred to as the DAC Framework (or DAC Fx)
   • Collection of APIs, file and data formats, and services
   • Dramatically simplify database deployment and
     versioning
   • Fully integrated into SSDT and essential for developers!
   • Allows a focus on the data model rather than on scripts
   • Target on-premises or cloud
UCP-      Enterprise Edition Only •
                                  •
                              •
       AdventureWorks-        •
   Side by Side DAC               •
                  Data-           •
                                  •
v2 DAC Upgrade
   • Side-by-side process
   • Data migrated to new database
   • Retained copy of previous database
v3 DAC Upgrade
   •   Shipped with SQL Server 2012
   •   Supports in-place upgrades
   •   No need to copy/migrate all the data (#1 requested feature)
   •   Support for SQL Server 2005 SP4 (or later) and SQL Azure
   •   Need to ensure sufficient transaction log space is available for
       upgrade process
   • PowershellIncrementalUpgrade() method added
Enhanced Object Support

Significant enhancement to list of supported
objects
    • 98% SQL Azure parity
    • Support added for permissions and roles
Enhanced database object support:
Newly Supported Objects
SYNONYM                                  SEQUENCE
SPATIAL INDEX                            GEOMETRY
GEOGRAPHY                                HIERARCHYID
Cursor Parameters in Stored Procedures   STATISTICS
Platform Targeting

Single project can target multiple platforms
   • Versions of SQL Server
   • SQL Azure
Build prevents use of unsupported features
for platform
Easy migration of databases to SQL Azure
   • Create down-level .dacpac file
Demo
Database Project vs. DAC Project
         Database Project                 Data-tier Application Project V1
(Mission Critical, Business Critical)               (Small Apps)

                Visual                                  Visual
                Studio                                  Studio


                              Build         Build

           Generate
                              .dbschema     .dacpac
            scripts


Deplo                                       Deploy
  y
DAC Exports
 Option to export both schema and data to a single file
     • Exports logins, users, tables, columns, constraints, indexes, views,
       stored procedures, functions and triggers
     • First added in DAC v2 Feature Pack CTP
 .bacpac files
     • Uses JSON format for data
     • Much easier than using (and configuring) bcp
     • Avoids issues with code pages and precision
 Not intended as a backup mechanism
     • No transaction log or history
     • Not transactionally consistent (where concurrent access is
       occurring)
DACImportExportCLI.exe –s localhost-d RetailDB -f
C:EXPORTRetailDB.bacpac
                      -x -e
DAC Import

Imports schema and data
    • Registers Data-Tier Application
Greatly simplifies migrations
    • SQL Server -> SQL Azure

DACImportExportCLI.exe –s sdf23sdf.database.windows.net
                      -d RetailDB
                      -f C:EXPORTRetailDB.bacpac
                      -i
                      -u Username
                      -p Password
SQL Azure Integration

BACPAC can also be used in SQL Azure portal
  • Databases export .bacpac to Windows Azure
    storage
  • Create one or more databases based on
    importing .bacpac from storage
Extract/Deploy Data-Tier Applications
to/from local filesystem
  • Use SSMS directly connected to SQL Azure
Call To Action!

Consider using DAC Fx on your next project
  • Focus on the data model, not on the schema
    changes
Simplify your application deployment
  • Move on from error-prone scripts
  • Distribute .dacpac or .bacpac files with your
    application
SQL Explore 2012 - Meir Dudai: DAC

More Related Content

PPTX
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
sqlserver.co.il
 
PDF
Windows azure sql_database_security_isug012013
sqlserver.co.il
 
PPTX
DAC 2012
sqlserver.co.il
 
PPTX
Adi Sapir ISUG 123 11/10/2012
sqlserver.co.il
 
PPTX
AzureSQL Managed Instance (SQLKonferenz 2018)
Jovan Popovic
 
PPTX
Extending your data to the cloud
Microsoft TechNet - Belgium and Luxembourg
 
PDF
Azure SQL Database Introduction by Tim Radney
Hasan Savran
 
PPTX
Azure SQL Managed Instance - SqlBits 2019
Jovan Popovic
 
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
sqlserver.co.il
 
Windows azure sql_database_security_isug012013
sqlserver.co.il
 
DAC 2012
sqlserver.co.il
 
Adi Sapir ISUG 123 11/10/2012
sqlserver.co.il
 
AzureSQL Managed Instance (SQLKonferenz 2018)
Jovan Popovic
 
Extending your data to the cloud
Microsoft TechNet - Belgium and Luxembourg
 
Azure SQL Database Introduction by Tim Radney
Hasan Savran
 
Azure SQL Managed Instance - SqlBits 2019
Jovan Popovic
 

What's hot (20)

PDF
The Evolution of SQL Server as a Service - SQL Azure Managed Instance
Javier Villegas
 
PPTX
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
PPTX
How SQL Server 2016 SP1 Changes the Game
PARIKSHIT SAVJANI
 
PDF
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
Tobias Koprowski
 
PPTX
Introduction to Windows Azure Data Services
Robert Greiner
 
PDF
Azure - Data Platform
giventocode
 
PDF
Toad for Sybase Datasheet
Toad4Sybase
 
PDF
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
Tobias Koprowski
 
PPTX
What’s new in SQL Server 2017
James Serra
 
PDF
Azure Cloud Dev Camp - Introduction
giventocode
 
PDF
Microsoft SQL server 2017 Level 300 technical deck
George Walters
 
PPTX
Migrating Data and Databases to Azure
Karen Lopez
 
PPTX
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
PPTX
Tarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshooting
Jovan Popovic
 
PPTX
Introduction to Azure SQL DB
Christopher Foot
 
PPTX
Introducing Azure SQL Database
James Serra
 
PPTX
Store Data in Azure SQL Database
Suhail Jamaldeen
 
PPTX
SQL Database on Azure
Thurupathan Vijayakumar
 
PDF
KoprowskiT_SQLSatDenmark_WASDforBeginners
Tobias Koprowski
 
PDF
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
The Evolution of SQL Server as a Service - SQL Azure Managed Instance
Javier Villegas
 
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
How SQL Server 2016 SP1 Changes the Game
PARIKSHIT SAVJANI
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
Tobias Koprowski
 
Introduction to Windows Azure Data Services
Robert Greiner
 
Azure - Data Platform
giventocode
 
Toad for Sybase Datasheet
Toad4Sybase
 
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
Tobias Koprowski
 
What’s new in SQL Server 2017
James Serra
 
Azure Cloud Dev Camp - Introduction
giventocode
 
Microsoft SQL server 2017 Level 300 technical deck
George Walters
 
Migrating Data and Databases to Azure
Karen Lopez
 
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
Tarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshooting
Jovan Popovic
 
Introduction to Azure SQL DB
Christopher Foot
 
Introducing Azure SQL Database
James Serra
 
Store Data in Azure SQL Database
Suhail Jamaldeen
 
SQL Database on Azure
Thurupathan Vijayakumar
 
KoprowskiT_SQLSatDenmark_WASDforBeginners
Tobias Koprowski
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
Ad

Viewers also liked (6)

PPTX
2 sql explore - replication
sqlserver.co.il
 
PPTX
SQL Explore 2012 - Michael Zilberstein: ColumnStore
sqlserver.co.il
 
PPTX
1 crystal bowl
sqlserver.co.il
 
PPT
商务英语函电-Project 1-Layout of Business Letter
mootee
 
PPTX
Things you can find in the plan cache
sqlserver.co.il
 
PPTX
Sql server user group news january 2013
sqlserver.co.il
 
2 sql explore - replication
sqlserver.co.il
 
SQL Explore 2012 - Michael Zilberstein: ColumnStore
sqlserver.co.il
 
1 crystal bowl
sqlserver.co.il
 
商务英语函电-Project 1-Layout of Business Letter
mootee
 
Things you can find in the plan cache
sqlserver.co.il
 
Sql server user group news january 2013
sqlserver.co.il
 
Ad

Similar to SQL Explore 2012 - Meir Dudai: DAC (20)

PDF
Extreme performance - IDF UG
sqlserver.co.il
 
PPTX
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Microsoft TechNet - Belgium and Luxembourg
 
PDF
DWX 2023 - Datenbank-Schema Deployment im Kubernetes Release
Marc Müller
 
PPTX
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Mark Kromer
 
PDF
VMware - Application Portability
VMUG IT
 
PPTX
Database projects within visual studio
Ronnie Hicks
 
PDF
Database CI Demo Using Sql Server
Umesh Kumar
 
PPTX
DevOps and Cloud at NI
Ernest Mueller
 
PDF
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Databricks
 
PPTX
Docker Datacenter Overview and Production Setup Slides
Docker, Inc.
 
PPT
Db trends final
Craig Mullins
 
PDF
IBM - Introduction to Cloudant
Francisco González Jiménez
 
PDF
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
Raul Chong
 
PPTX
BRK2045_Upgrade-SQL-Server-2017-On-Prem-IaaS-and-PaaS_final.pptx
Farid Adam
 
PPTX
Docker for the enterprise
Bert Poller
 
PDF
vRA7 What's New
Erik Bussink
 
PDF
DesignMind SQL Server 2008 Migration
Mark Ginnebaugh
 
PPTX
Docker & aPaaS: Enterprise Innovation and Trends for 2015
WaveMaker, Inc.
 
PPT
Apex ace update
Ayesha Fayyaz
 
PPTX
Building FoundationDB
FoundationDB
 
Extreme performance - IDF UG
sqlserver.co.il
 
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Microsoft TechNet - Belgium and Luxembourg
 
DWX 2023 - Datenbank-Schema Deployment im Kubernetes Release
Marc Müller
 
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Mark Kromer
 
VMware - Application Portability
VMUG IT
 
Database projects within visual studio
Ronnie Hicks
 
Database CI Demo Using Sql Server
Umesh Kumar
 
DevOps and Cloud at NI
Ernest Mueller
 
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Databricks
 
Docker Datacenter Overview and Production Setup Slides
Docker, Inc.
 
Db trends final
Craig Mullins
 
IBM - Introduction to Cloudant
Francisco González Jiménez
 
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
Raul Chong
 
BRK2045_Upgrade-SQL-Server-2017-On-Prem-IaaS-and-PaaS_final.pptx
Farid Adam
 
Docker for the enterprise
Bert Poller
 
vRA7 What's New
Erik Bussink
 
DesignMind SQL Server 2008 Migration
Mark Ginnebaugh
 
Docker & aPaaS: Enterprise Innovation and Trends for 2015
WaveMaker, Inc.
 
Apex ace update
Ayesha Fayyaz
 
Building FoundationDB
FoundationDB
 

More from sqlserver.co.il (20)

PPTX
Query handlingbytheserver
sqlserver.co.il
 
PPTX
Products.intro.forum version
sqlserver.co.il
 
PPTX
SQL Explore 2012: P&T Part 3
sqlserver.co.il
 
PPTX
SQL Explore 2012: P&T Part 2
sqlserver.co.il
 
PPTX
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
PPTX
SQL Explore 2012 - Aviad Deri: Spatial
sqlserver.co.il
 
PPTX
מיכאל
sqlserver.co.il
 
PPTX
נועם
sqlserver.co.il
 
PPTX
עדי
sqlserver.co.il
 
PPTX
מיכאל
sqlserver.co.il
 
PDF
Bi303 data warehousing with fast track and pdw - Assaf Fraenkel
sqlserver.co.il
 
PPTX
DBCC - Dubi Lebel
sqlserver.co.il
 
PPTX
Fast transition to sql server 2012 from mssql 2005 2008 for developers - Dav...
sqlserver.co.il
 
PPTX
ISUG 113: File stream
sqlserver.co.il
 
PDF
3 extreme performance - databases acceleration using ssd
sqlserver.co.il
 
PPTX
3 extreme performance - databases acceleration using ssd
sqlserver.co.il
 
PPTX
4 extreme performance - part ii
sqlserver.co.il
 
PPTX
2 extreme performance - smaller is better
sqlserver.co.il
 
PPTX
1 extreme performance - part i
sqlserver.co.il
 
PDF
6 sql explorer - powershell dba
sqlserver.co.il
 
Query handlingbytheserver
sqlserver.co.il
 
Products.intro.forum version
sqlserver.co.il
 
SQL Explore 2012: P&T Part 3
sqlserver.co.il
 
SQL Explore 2012: P&T Part 2
sqlserver.co.il
 
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
SQL Explore 2012 - Aviad Deri: Spatial
sqlserver.co.il
 
מיכאל
sqlserver.co.il
 
נועם
sqlserver.co.il
 
מיכאל
sqlserver.co.il
 
Bi303 data warehousing with fast track and pdw - Assaf Fraenkel
sqlserver.co.il
 
DBCC - Dubi Lebel
sqlserver.co.il
 
Fast transition to sql server 2012 from mssql 2005 2008 for developers - Dav...
sqlserver.co.il
 
ISUG 113: File stream
sqlserver.co.il
 
3 extreme performance - databases acceleration using ssd
sqlserver.co.il
 
3 extreme performance - databases acceleration using ssd
sqlserver.co.il
 
4 extreme performance - part ii
sqlserver.co.il
 
2 extreme performance - smaller is better
sqlserver.co.il
 
1 extreme performance - part i
sqlserver.co.il
 
6 sql explorer - powershell dba
sqlserver.co.il
 

Recently uploaded (20)

PDF
Software Development Company | KodekX
KodekX
 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Software Development Company | KodekX
KodekX
 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 

SQL Explore 2012 - Meir Dudai: DAC

  • 1. - DAC DBA-
  • 2. Underutilized hardware Overburdened Administrators 1990 2000 2010
  • 3. Having fun with deployment
  • 4. DAC • • •
  • 7. Challenges Development • No uniform DB project system and workflow Deployment Management • DBAs and • Difficult to centrally Developers work in control the silos environment • Time consuming and error prone
  • 8. Investments Development • Data-tier Application project • Integrated editor, debugger, IntelliSense, policy designer • Static code analysis, build service Deployment Management • Easier to deploy • Manage @ Scale: SQL and upgrade Data- Server Control Point tier Apps from VS • Visualize resource and SSMS (and now utilization at the SSDT) instance & application level
  • 9. Concepts .dacpac = unit of deployment (data- tier application + developer intent) Schema LOGICAL Data-tier Application Component Tables, PHYSICA L • Improves collaboration between Views, Users, Procs, Logins, developer and DBA UDFs Indexes • Moves developers from a procedural model to a declarative model DAC Deployment Profile Deployment Requirements, Management Policies
  • 10. Data-Tier Applications Data-Tier Applications • Often referred to as the DAC Framework (or DAC Fx) • Collection of APIs, file and data formats, and services • Dramatically simplify database deployment and versioning • Fully integrated into SSDT and essential for developers! • Allows a focus on the data model rather than on scripts • Target on-premises or cloud
  • 11. UCP- Enterprise Edition Only • • • AdventureWorks- • Side by Side DAC • Data- • •
  • 12. v2 DAC Upgrade • Side-by-side process • Data migrated to new database • Retained copy of previous database v3 DAC Upgrade • Shipped with SQL Server 2012 • Supports in-place upgrades • No need to copy/migrate all the data (#1 requested feature) • Support for SQL Server 2005 SP4 (or later) and SQL Azure • Need to ensure sufficient transaction log space is available for upgrade process • PowershellIncrementalUpgrade() method added
  • 13. Enhanced Object Support Significant enhancement to list of supported objects • 98% SQL Azure parity • Support added for permissions and roles Enhanced database object support: Newly Supported Objects SYNONYM SEQUENCE SPATIAL INDEX GEOMETRY GEOGRAPHY HIERARCHYID Cursor Parameters in Stored Procedures STATISTICS
  • 14. Platform Targeting Single project can target multiple platforms • Versions of SQL Server • SQL Azure Build prevents use of unsupported features for platform Easy migration of databases to SQL Azure • Create down-level .dacpac file
  • 15. Demo
  • 16. Database Project vs. DAC Project Database Project Data-tier Application Project V1 (Mission Critical, Business Critical) (Small Apps) Visual Visual Studio Studio Build Build Generate .dbschema .dacpac scripts Deplo Deploy y
  • 17. DAC Exports Option to export both schema and data to a single file • Exports logins, users, tables, columns, constraints, indexes, views, stored procedures, functions and triggers • First added in DAC v2 Feature Pack CTP .bacpac files • Uses JSON format for data • Much easier than using (and configuring) bcp • Avoids issues with code pages and precision Not intended as a backup mechanism • No transaction log or history • Not transactionally consistent (where concurrent access is occurring) DACImportExportCLI.exe –s localhost-d RetailDB -f C:EXPORTRetailDB.bacpac -x -e
  • 18. DAC Import Imports schema and data • Registers Data-Tier Application Greatly simplifies migrations • SQL Server -> SQL Azure DACImportExportCLI.exe –s sdf23sdf.database.windows.net -d RetailDB -f C:EXPORTRetailDB.bacpac -i -u Username -p Password
  • 19. SQL Azure Integration BACPAC can also be used in SQL Azure portal • Databases export .bacpac to Windows Azure storage • Create one or more databases based on importing .bacpac from storage Extract/Deploy Data-Tier Applications to/from local filesystem • Use SSMS directly connected to SQL Azure
  • 20. Call To Action! Consider using DAC Fx on your next project • Focus on the data model, not on the schema changes Simplify your application deployment • Move on from error-prone scripts • Distribute .dacpac or .bacpac files with your application