Declarative Database Development with SQL Server Data Tools

13
DATABASE DEVELOPMENT WITH SQL SERVER DATA TOOLS Gert Drapers (@DataDude) Principal Group Program Manager SQL Server Data Platform

description

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

Transcript of Declarative Database Development with SQL Server Data Tools

Page 1: Declarative Database Development with SQL Server Data Tools

DATABASE DEVELOPMENT WITH SQL SERVER DATA TOOLS

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

Page 2: Declarative Database Development with SQL Server Data Tools

CONNECTED DEVELOPMENT

PROJECT BASED DEVELOPMENT

SCHEMA DEPLOYMENT

INTRODUCING SQL SERVER DATA TOOLS

Page 3: Declarative Database Development with SQL Server Data Tools

3

CONNECTED DEVELOPMENT

Page 4: Declarative Database Development with SQL Server Data Tools

CONNECTED DEVELOPMENT

Drift Detection

Schema Comparison

SQL Server Object Explorer

T-SQL Editor

Table Designer

Error Information

T-SQL IntelliSense

View Code

View/Edit Data

T-SQL Debugging

Page 5: Declarative Database Development with SQL Server Data Tools

5

PROJECT BASED DEVELOPMENT

Page 6: Declarative Database Development with SQL Server Data Tools

PROJECT BASED DEVELOPMENT

Go To Definition

Find All References

Refactoring

Point-in-time Snapshots

T-SQL Static Code Analysis

Source Code Based

F5 Debugging & Testing with

LocalDB

Source Code Control

MSBuild

Headless Command Line

Tools

Visualize Schema Differences

Page 7: Declarative Database Development with SQL Server Data Tools

7

SCHEMA DEPLOYMENT

Page 8: Declarative Database Development with SQL Server Data Tools

SCHEMA DEPLOYMENT

Incremental Schema

Deployment

Model Based DACPAC

SQL ScriptRetargeting

Support

SQL Server 2005SQL Server 2008SQL Server 2012

SQL Azure

Format

Engine

API & REDIST

Connected

DeclarativeStandard Formats

Multi-Targeting DAC

Page 9: Declarative Database Development with SQL Server Data Tools

DAC

SQL Server Data Tools SQL Server Management Studio

PublishCompare Sync

ImportExport

RegisterUnregister

SQL Azure Management Portal

Page 10: Declarative Database Development with SQL Server Data Tools

10

COMMAND LINE OPERATIONS

Page 11: Declarative Database Development with SQL Server Data Tools

CONNECTED DEVELOPMENT

PROJECT BASED DEVELOPMENT

SCHEMA DEPLOYMENT

DeclarativeStandard Formats

Multi-Targeting DAC

Page 12: Declarative Database Development 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 13: Declarative Database Development with SQL Server Data Tools

13