Date post: | 22-Dec-2015 |
Category: |
Documents |
Upload: | chad-fields |
View: | 217 times |
Download: | 3 times |
Exploring SQL Server Data Tier Applications Gert Drapers (@DataDude)Principal Group Program Manager Microsoft Corporation
Adam MahoodProgram ManagerMicrosoft Corporation
DBI309
Agenda
Introduction to Data Tier ApplicationsDACFx: Data Tier Application Framework
DACFx OverviewDemo: SqlPackage.exeDemo: DACFx Managed API (Microsoft.SqlServer.Dac.dll)
Clients of DACFxScenarios supported by DACFxDemo: SQL Server Data ToolsDemo: SQL Server Management StudioDemo: SQL Azure Management Portal
Database Lifecycle Management is Hard!
Challenges include…Developing for different target platformsVersioning your database alongside your applicationPromoting databases across environmentsMigrating databases to the cloud
There is a solution…
Introducing Data Tier Applications!
Self contained database entity used by an application
Single unit of deployment and lifecycle management
DAC packages (.dacpac/.bacpac)Authored along side your application codeExtracted from existing databasesDeployable to SQL Server and Windows Azure SQL Databases
Consistent story for database development, migration, and versioning across the SQL Server platform
DAC
SQL Server Data Tools SQL Server Management Studio
PublishCompare Sync
ImportExport
RegisterUnregister
SQL Azure Management Portal
DAC Packages.dacpacPackaged Schema representing the declarative model of the database
Not SQL, but a declarative Schema Model representation of the database Compiled from source code or Extracted from existing databasesDeploy as new database or Upgrade an existing databaseSupports all SQL Server database objects and types
.bacpacPackaged Schema and Data representing the state of the database
Composed of Schema Model with state-ful properties and Data streamsExported from existing databasesImported as a new database or populates an empty databaseSupports most SQL Server database objects and types (Azure Parity)
DAC Framework (DACFx)Core SQL Server component providing modeling, reverse engineering, and deployment capabilities
Managed APIExposes verbs for DAC package operations
Command-line tool (SqlPackage.exe)Lightweight executable over the managed API
DACUnpack.exeWindows file handler for unpacking .dacpacs to disk
DACFx ClientsSSDT, SSMS, SAMP, VS Web and DB Publishing
DAC Evolution
.dbschema v1.1Visual Studio
2008 Database Edition GDR
.dbschema v1.2Visual Studio
2010 Database Projects
.sqlx v1.0SQL Server Data
ToolsCTP3
.dacpac v2.5SQL Server Data
ToolsCTP4
.dacpac v1.0SQL 2008 R2
RC
.dacpac v1.05SQL 2008 R2
RTM
.dacpac v1.1SQL 2008 R2
SP1
.dacpac v2.0SQL 2012
RC0
.dacpac v3.0consumed by all SQL Server tools
DACFx Object Support and Compatibility
SQL Server 2012 DACFx (v3.0) supports full SQL Server database domain
SQL Server 2005SQL Server 2008/R2SQL Server 2012Windows Azure SQL Databases
DACFx (v3.0) backwards compatibilityDACFx 1.0, 1.1, and 2.0
demo
DAC Framework (DACFx)SqlPackage.exeC# API
SQL Server Data Tools (SSDT)
Developer-focused toolset for authoring, building, and publishing DACPACs
Experiences EnabledConnected Imperative and Declarative DevelopmentProject Based DevelopmentApplication Lifecycle & Tools
DACPAC ActionsBuild/SnapshotCompareImport into ProjectPublish
SQL Server Management Studio (SSMS)
DBA-focused tools for creating, deploying, and managing DAC packages
Experiences EnabledAdministration and MonitoringConnected Imperative DevelopmentConfiguration and Task Wizards
BACPAC ActionsImportExportDeploy Database to SQL Azure
DACPAC ActionsExtract Deploy Upgrade Register/Unregister
SQL Azure Management Portal (SAMP)
Subscriber and Operator oriented online toolset for managing Windows Azure SQL Databases through DACFx actions
Experiences EnabledDatabase MigrationConnected Imperative and Declarative DevelopmentApplication Lifecycle support
BACPAC ActionsImportExport
DACPAC Actions ExtractDeploy Upgrade
DAC Lifecycle
Develop (SSDT)• Import Database/
DACPAC• Compare and
Synchronize Sources
• Build DACPAC from Database Project
• Publish DACPAC
Deploy (SSMS)• Deploy DAC Package
• New Databases• Upgrade Databases
Manage (SSMS and SAMP)• Extract and Export DAC
Packages• Register Database as
DAC
Developer DBA DBA/Admin
demo
DACFx ClientsSQL Server Data ToolsSQL Server Management StudioSQL Azure Management Portal
Summary: Data Tier Applications Unit of deployment and lifecycle management for SQL Server
Packages contain model representation of the database
DACFx can compile and deploy packages to a new or existing database
Deployable to SQL Server and Azure SQL Database
DACFx is a SQL Server redistributable component with a managed API
DACFx actions surfaced in SQL Server 2012 client tooling
SSDT, SSMS, SAMP, VS Web and DB Publishing
Resources
SQL Server 2012 Feature Pack Downloadshttp://www.microsoft.com/en-us/download/details.aspx?id=29065
SQL Server Data Tools Online Installationhttp://msdn.microsoft.com/data/tools Get It
SSDT Team Bloghttp://blogs.msdn.com/b/ssdt/
MSDN Forumhttp://social.msdn.microsoft.com/Forums/en-US/ssdt/threads
Related Content
DBI311 - SQL Server Data Tools: Database Development from Zero to Sixty
DBI31-HOL - Getting Started with SQL Server Data Tools in SQL Server 2012
DBI07-TLC - SQL Server: Cloud on Your Terms - Optimized Productivity
DBI Track Resources
@sqlserver@teched_europe
#msTechEd
mvaMicrosoft Virtual Academy
SQL Server 2012 Eval Copy
Get Certified!
Hands-On Labs
Resources
Connect. Share. Discuss.
http://europe.msteched.com
Learning
Microsoft Certification & Training Resources
www.microsoft.com/learning
TechNet
Resources for IT Professionals
http://microsoft.com/technet
Resources for Developers
http://microsoft.com/msdn
Evaluations
http://europe.msteched.com/sessions
Submit your evals online
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.