Declarative Database Development with SQL Server Data Tools

1,667 views

Published on

SQLBits X presentation, Declarative Database Development with SQL Server Data Tools (SSDT)

Database development is complicated by nature! Database engines are stateful, so data loss is always a risk; object dependencies determine the order in which changes need to be applied and the loosely coupled nature of the SQL language can result in unexpected runtime errors. These are just a small collection of examples why database development is hard. The SQL Server Data Tools (SSDT) development environment helps developers getting a better handle on database development, testing, deployment and migrations. The declarative nature lets the developer focus on the final state they want, instead of writing an imperative script on how to change the state of the database directly

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,667
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
47
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 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 Object Explorer (SSOX)Modeled after SSMS object explorerModern T-SQL Coding Experience Buffered Declarative Object EditingModel-based with Error DetectionImperative Script ExecutionT-SQL IntelliSenseCode-behind Table DesignerView/Edit/Script Data (incl. copy/paste)Execute/Debug T-SQL Procedures, Functions
  • Database definition managed in a Visual Studio projectMulti-target SQL Server {2005, 2008, 2008R2, 2012, Azure}Advanced Language Services for T-SQLGo To Definition/Find All References/RefactoringF5 debugging with LocalDBVisualize schema differences and migrate changesPublish direct to database or via SQL script or DACPACIntegrated database drift detectionPoint-in-time SnapshotDrag & Drop import from SQL Server Object ExplorerApplication Lifecycle & ToolsMSBuild tasks for:BuildPublishT-SQL Static Code AnalysisMSBuild in a redist (SSDTBuildUtilities.msi)Database projects in build server environment (like Team Build) without installing full VS on build serverSSDT Integrates with all standard VS SCCS providersDACFX v3Schema ComparePublish
  • Publishing your Database ChangesTarget version aware:SQL Server 2005SQL Server 2008 & SQL Server 2008 R2SQL Server 2012SQL AzurePublish Direct, via SQL script, or DACPAC snapshots
  • DAC Framework v3.0 (DACFX)DAC FrameworkDACFX is the core SQL redist providing modeling, reverse engineering and deployment pipeline capabilitiesv3.0 supports the full domain of SQL Server 2005, 2008/R2, 2012, and SQL AzureManaged Public APIExposes verbs for DACPAC and BACPAC operationsCommand-line tool (SqlPackage.exe)Exposes DACPAC verbs, project publishDACUnpack.exeWindows file handler for unpacking DACPAC to diskDACFX ClientsSSMS, SSDT, SAMP, I&E, VS Web and DB Publishing
  • 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)
  • Declarative Database Development with SQL Server Data Tools

    1. 1. DATABASE DEVELOPMENT WITHSQL SERVER DATA TOOLSGert Drapers (@DataDude)Principal Group Program ManagerSQL Server Data Platform
    2. 2. INTRODUCING SQL SERVER DATA TOOLS
    3. 3. CONNECTED DEVELOPMENT 3
    4. 4. CONNECTED DEVELOPMENT T-SQL IntelliSense Drift Detection Table Designer SQL ServerObject Explorer T-SQL Debugging View Code Schema Comparison T-SQL Editor View/Edit Data Error Information
    5. 5. PROJECT BASED DEVELOPMENT 5
    6. 6. PROJECT BASED DEVELOPMENT Point-in-time Go To Definition Source Code Based Source Code Control Snapshots Visualize SchemaFind All References MSBuild Differences F5 Debugging & Testing with LocalDB Headless Command T-SQL Static Code Refactoring Line Tools Analysis
    7. 7. SCHEMA DEPLOYMENT 7
    8. 8. SCHEMA DEPLOYMENT Model Based SQL Server 2005 DACPAC Format SQL Server 2008 SQL Server 2012 SQL Azure Connected EngineIncremental Schema Deployment Retargeting Support SQL Script API & REDIST
    9. 9. SQL Azure Management Portal Import Publish Export Compare Register Sync Unregister DACSQL Server Data Tools SQL Server Management Studio
    10. 10. COMMAND LINE OPERATIONS 10
    11. 11. RESOURCESSQL Server Data Tools Online Installation http://msdn.microsoft.com/data/tools Get ItTeam Blog http://blogs.msdn.com/b/ssdt/MSDN Forum http://social.msdn.microsoft.com/Forums/en-US/ssdt/threadsArticles MSDN Magazine Sept 2011 The "Juneau" Database Project
    12. 12. 13

    ×