to the cloud with sql server data tools

17
TO THE CLOUD WITH SQL SERVER DATA TOOLS Gert Drapers (@DataDude) Principal Group Program Manager SQL Server Data Platform

Upload: gert-drapers

Post on 05-Dec-2014

885 views

Category:

Technology


6 download

DESCRIPTION

In this session we will provide an overview of how the SQL Server Data Tools (SSDT) can be leveraged as a cloud development and migration tool. Learn how easy it is to deploy an on-premise database to the cloud using SSDT and get insight into best practices and compatibility issues when migrating from on-prem to SQL Azure. We will also cover how SSDT integrates with the SQL Azure Management Portal, Import/Export service, SQL Server Management Studio (SSMS) by leveraging the DACPAC schema format.

TRANSCRIPT

Page 1: To the cloud with SQL Server Data Tools

TO THE CLOUD WITH SQL SERVER DATA TOOLS

Gert Drapers (@DataDude)Principal Group Program ManagerSQL Server Data Platform

Page 2: To the cloud with SQL Server Data Tools

CONNECTED DEVELOPMENT

PROJECT BASED DEVELOPMENT

SCHEMA DEPLOYMENT

INTRODUCING SQL SERVER DATA TOOLS

Page 3: To the cloud with SQL Server Data Tools

CONNECTED DEVELOPMENT

PROJECT BASED DEVELOPMENT

SCHEMA DEPLOYMENT

DeclarativeStandard Formats

Multi-Targeting DAC

Page 4: To the cloud with SQL Server Data Tools

4

DEPLOY DATABASE TO SQL AZURE

Page 5: To the cloud with SQL Server Data Tools

SQL AZURE VS. SQL SERVER, SOME OF THE DIFFERENCES…Features not available include…

• Common Language Runtime (CLR)

• Filegroup management• Full-text Search• Linked Servers• Distributed Transactions• Change Tracking • Service Broker

Unsupported syntax includes…• USE DATABASE• ON PRIMARY (Filegroups)• Tables must have a clustered

index • Extended Properties• NOT FOR REPLICATION• ROWGUIDCOL• Various Index options (WITH)• Windows logins• Various XML features • Encrypted objects• UDTs (CLR)

For more information see: http://msdn.microsoft.com/en-us/library/ee336253.aspx http://

msdn.microsoft.com/en-us/library/windowsazure/ee336267.aspx

• Federations

Features only on SQL Azure…

Page 6: To the cloud with SQL Server Data Tools

6

RETARGET TO SQL AZURE

Page 7: To the cloud with SQL Server Data Tools

SQL AZURE MIGRATION PROCESS

Assess

• Assess database schema for compatibility• Assess application requirements

Update

• Update schema as required• Update applications to match revised schema

Deploy

• Deploy schema, or• Update database and deploy schema + data• Deploy applications and test

Page 8: To the cloud with SQL Server Data Tools

MIGRATION TO SQL AZURE WITH SSDT

• Conversion approaches• Import database schema into project and prune, or• Schema Compare into empty project excluding unsupported objects

• Validation• Set project target to SQL Azure and build• Fix validation errors and rebuild to confirm

• Deploy Schema• Publish schema to SQL Azure (direct, via scripts or dacpac)

• Deploy Schema + Data• Reset target and update original database to make it SQL Azure

compliant• Use (SSMS) Deploy to SQL Azure… (uses bacpac)

Page 9: To the cloud with SQL Server Data Tools

FILTERING OUT UNSUPPORTED SQL AZURE OBJECTS

APPLICATION-SCOPED OBJECTS

• Aggregates• Application Roles• Assemblies• Asymmetric keys• Broker Priorities• Certificates• Contracts• Defaults• Extended Properties• Filegroups• Full Text Catalogs• Full Text Indexes• Full Text Stoplists

NON-APPLICATION SCOPED• All…

Use Schema Compare options to exclude these from comparison

• Message Types• Partition Functions• Partition Schemes• Queues• Remote Service Bindings• Rules• Sequences• Services• Symmetric Keys• User Defined Types (CLR)• XML Indexes• XML Schema Collections• Users (if Windows users…)

Page 10: To the cloud with SQL Server Data Tools

10

DAC SCENARIOS

Page 11: To the cloud with SQL Server Data Tools

SQL SERVER DATA TOOLS (SSDT)

Developer-focused toolset for authoring, building and publishing DACPACs

Experiences Enabled• Connected Imperative and Declarative Development• Project Based Development• Application Lifecycle & Tools

DACPAC verbs• Author DACPAC declaratively and build package from source• Compare DACPAC to project, database, and other DACPACs• Import DACPAC into project• Publish DACPAC or Project to database

Page 12: To the cloud with SQL Server Data Tools

SQL SERVER MANAGEMENT STUDIO (SSMS)

DBA-focused tools for deploying and extracting DACPACs; importing and exporting BACPACs

Experiences Enabled• Administration and Monitoring• Connected Imperative Development• Configuration and Task Wizards

DACPAC Verbs Supported• Deploy Data Tier Application• Register/Unregister Data Tier Application• Upgrade Data Tier Application

BACPAC Verbs Supported• Import and Export Data Tier Application• Migrate Database to SQL Azure

Page 13: To the cloud with SQL Server Data Tools

SQL AZURE MANAGEMENT PORTAL (SAMP)

Subscriber and Operator oriented toolset for managing SQL Azure databases through DACfx Verbs

Experiences Enabled• Connected Development• Portal Based Tools• Application Lifecycle support

BACPAC Verbs supports (Via Blob Storage)• Export Data Tier Application• Import Data Tier Application

DACPAC verbs supported• Deploy Data Tier Application• Upgrade Data Tier Application• Extract Data Tier Application

Page 14: To the cloud with SQL Server Data Tools

14

DAC LIFECYCLE

Develop (SSDT)• Import Database/

DACPAC• Author DAC• Compare and

Synchronize Source

• Compile Database Project to DACPAC

• Publish DACPAC

Deploy (SSMS)• Deploy Package

• New Databases• Upgrade Databases

Manage (SSMS and SAMP)• Export and Extract

Packages• Register Database as

DAC

Developer

DBA DBA/Admin

Page 15: To the cloud with SQL Server Data Tools

15

SCHEMA DEPLOYMENT USING DACFX

Page 16: To the cloud with SQL Server Data Tools

RESOURCES

SQL Server Data Tools Online Installationhttp://msdn.microsoft.com/data/tools Get It

Team Bloghttp://blogs.msdn.com/b/ssdt/

MSDN Forumhttp://social.msdn.microsoft.com/Forums/en-US/ssdt/threads

ArticlesMSDN Magazine Sept 2011 The "Juneau" Database Project

Page 17: To the cloud with SQL Server Data Tools

17