Download presentation
Presentation is loading. Please wait.
1
SQL Server deployments
Made easy with DACPACs Sanil Mhatre @SQLSuperGuru
2
thank you dev up Conference 2016 Sponsors !
5/19/2018 SILVER thank you dev up Conference 2016 Sponsors ! GOLD PLATINUM © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
3
About me Database Solutions Architect in the Financial Services domain
Oracle & SQL Server DBA Java , Big Data , C# , SQL Development Speaker Blogger : Twitter
4
Agenda SQL Server Data Tools Legacy deployment scripts
What is a DACPAC Benefits of DACPAC Deployments SQLPACKAGE Demos – Physical SQL Server and SQL Azure Q&A
5
SQL Server Data Tools (SSDT)
Modern Database Development tooling Declarative Model Connected or Disconnected Mode of Database Development in Visual Studio Build, Debug, Maintain & Refactor Databases Visual Table Designer Advanced Schema compare & Publish Features
6
Deployment With 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-tier Application Component
Data-tier Application Component (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
11
DAC Deployments Physical SQL Server – on permise Deployment Report
Deployment Script Publish Rollback Demo
12
DAC Deployments SQL Azure - PaaS Visual Studio Team Services
Build definition Release definition Execute Azure SQL : Dacpac Task (SqlPackage.exe) Demo
13
Summary SSDT DACPAC Deployments Implementation details Benefits
Questions ?
14
dev up Conference 2016 Attendee Party Food, Drinks, Games, and Fun!
Ryse Nightclub October 21st Friday 5:15 – 10:15 Food, Drinks, Games, and Fun!
15
Appendix – Build Definition
16
Appendix – Release Definition
17
Appendix – Release
18
Appendix – References SQL Server Data Tools (SSDT) - us/library/hh272686(v=vs.103).aspx DAC Framework (DacFx) - us/library/dn645454(v=sql.120).aspx SQL Package - Publish profile with Advanced options options-to-specify-object-types-to-exclude-or-not-drop/ Visual Studio Team services - Build and deploy a DACPAC using VSTS - us/docs/release/examples/azure/azure-web-apps-and-sql-db
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.