The document discusses deploying SQL Server databases using DACPACs. It begins with an introduction to SQL Server Data Tools and legacy deployment scripts. It then defines what a DACPAC is, the benefits it provides including being portable, tamper resistant, and enabling scriptless deployments. It describes how to use the SQLPackage tool to extract, export, register and deploy DACPACs to both physical and Azure SQL databases. It concludes with demonstrations of deploying DACPACs and references for further information.
3. About me
■ Database SolutionsArchitect in the Financial Services domain
■ Oracle & SQL Server DBA
■ Java , Big Data , C# , SQL Development
■ Speaker
■ Blogger : http://sqlwithsanil.com
■ Twitter : @SQLSuperGuru
4. Agenda
■ SQL Server DataTools
■ Legacy deployment scripts
■ What is a DACPAC
■ Benefits of DACPAC Deployments
■ SQLPACKAGE
■ Demos – Physical SQL Server and SQL Azure
■ Q&A
5. SQL Server DataTools (SSDT)
■ Modern Database Development tooling
■ Declarative Model
■ Connected or Disconnected Mode of Database Development inVisual Studio
■ Build, Debug, Maintain & Refactor Databases
■ VisualTable Designer
■ Advanced Schema compare & Publish Features
6. DeploymentWith Scripts
■ Manual/Custom built
■ Tedious to maintain and deploy
■ Error Prone & susceptible to tampering
■ Static against a target environment
■ Disparate deployment methods
■ Disparate logging techniques
■ Rollback
7. Data-tierApplication Component
■ Data-tierApplicationComponent (DAC)
■ Logical Database Management entity that defines all SQL Sever objects
■ Self contained unit of SQL Server Database Deployment
■ Modern Framework - DacFx
■ Portable Deployment artifact – DAC package (DACPAC, .dacpac file)
8. DACPAC –What and why
■ DAC Package is a portable deployment artifact
■ Declarative Model, independent of target environment
■ Robust and tamper resistant
■ Ability to perform script-less deployments
■ Works with multiple deployment tools (SqlPackage, MSDeploy, Powershell, etc.)
■ Works with various versions of SQL Server on premise and in the cloud
■ Easy rollback
9. SQLPACKAGE
■ SqlPackage.exe – command line tool
■ Built into SQL Server & SSMS Install
■ No additional purchase, licensing or install
■ Robust & easy to use
■ Performs all DAC Operations
■ Control deployment options via publish profile and/or Command line parameters
10. DAC Options/Operations
■ Extract a dacpac (Schema only)
■ Export a bacpac (Schema + Data)
■ Register a DAC
■ Drift Report
■ Demo