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.
5. SQL AZURE VS. SQL SERVER, SOME OF THE DIFFERENCES…
Features not available include… Unsupported syntax includes…
• Common Language Runtime (CLR) • USE DATABASE
• Filegroup management • ON PRIMARY (Filegroups)
• Full-text Search • Tables must have a clustered index
• Extended Properties
• Linked Servers
• NOT FOR REPLICATION
• Distributed Transactions
• ROWGUIDCOL
• Change Tracking
• Various Index options (WITH)
• Service Broker • Windows logins
• Various XML features
Features only on SQL Azure…
• Encrypted objects
• UDTs (CLR)
http://msdn.microsoft.com/en-us/library/ee336253.aspx
http://msdn.microsoft.com/en-us/library/windowsazure/ee336267.aspx
7. SQL AZURE MIGRATION PROCESS
• Assess database schema for compatibility
Assess • Assess application requirements
• Update schema as required
Update • Update applications to match revised schema
• Deploy schema, or
• Update database and deploy schema + data
Deploy • Deploy applications and test
8. 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)
9. FILTERING OUT UNSUPPORTED SQL AZURE OBJECTS
APPLICATION-SCOPED OBJECTS NON-APPLICATION SCOPED
• Aggregates • Message Types • All…
• Application Roles • Partition Functions
• Assemblies • Partition Schemes
• Asymmetric keys • Queues
• Broker Priorities • Remote Service Bindings
• Certificates • Rules
• Contracts • Sequences
• Defaults • Services
• Extended Properties • Symmetric Keys
• Filegroups • User Defined Types (CLR)
• Full Text Catalogs • XML Indexes
• Full Text Indexes • XML Schema Collections
• Full Text Stoplists • Users (if Windows users…)
Use Schema Compare options to exclude these from comparison
11. 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
12. 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 BACPAC Verbs Supported
• Deploy Data Tier Application • Import and Export Data Tier Application
• Register/Unregister Data Tier Application • Migrate Database to SQL Azure
• Upgrade Data Tier Application
13. 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
DACPAC verbs supported BACPAC Verbs supports (Via Blob Storage)
• Deploy Data Tier Application • Export Data Tier Application
• Upgrade Data Tier Application • Import Data Tier Application
• Extract Data Tier Application
14. DAC LIFECYCLE
Developer DBA DBA/Admin
Develop (SSDT) Deploy (SSMS) Manage (SSMS and SAMP)
• Import Database/ • Deploy Package • Export and Extract Packages
DACPAC • New Databases • Register Database as DAC
• Author DAC • Upgrade Databases
• Compare and
Synchronize Source
• Compile Database
Project to DACPAC
• Publish DACPAC
14
16. RESOURCES
SQL Server Data Tools Online Installation
http://msdn.microsoft.com/data/tools Get It
Team Blog
http://blogs.msdn.com/b/ssdt/
MSDN Forum
http://social.msdn.microsoft.com/Forums/en-US/ssdt/threads
Articles
MSDN Magazine Sept 2011 The "Juneau" Database Project
Developer TrackSpeakerGert DrapersCodeSMS01Session TitleDatabase Development with SQL Server Data Tools Duration60 MinutesAbstractSQL Server Data Tools provides a brand-new developer experience for database developers by bringing familiar Microsoft Visual Studio development paradigms to bear; debug, refactor and maintain your database declaratively. This session introduces you to the new tools and how you can leverage them to build and maintain you SQL Server and SQL Azure database, standalone and inside a team environment.
Developer-focused toolset for building SQL Server & SQL Azure databasesExperiences EnabledConnected DevelopmentProject Based DevelopmentApplication Lifecycle & ToolsFundamentalsDeclarative, model based database developmentIntegrated tools with modern language services Connected and offline with local testingTarget SQL Server and SQL AzureDetecting and managing database drift
SQL Server Data Tools – SummaryDeveloper-focused toolset to author, debug and publish SQL Server & SQL Azure databasesSupports SQL PlatformFree, web updates for SQL Server and SQL Azure releasesWorks in concert with other SQL Server tooling (SAMP, SSMS)Compatible with your development environmentSupports Visual Studio 2010 & Visual Studio 11Migrates VS2010 database projects (*.dbproj)