Develop your Database using Database Projects from SQL Server Data Tools (SSDT)

Similar documents
Visual Studio Team Edition for Database Professionals. Woody Pewitt Developer Evangelist

Exploring SQL Server Data Tools in Visual Studio 2013

Offline Database Development and Unit Testing with SSDT. Andrey Zavadskiy

Implementing a Data Warehouse with Microsoft SQL Server

Continuous integration for databases using

COURSE 20463C: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Implementing a Data Warehouse with Microsoft SQL Server

Implementing a Data Warehouse with Microsoft SQL Server 2012 (70-463)

Implementing a Data Warehouse with Microsoft SQL Server MOC 20463

COURSE OUTLINE MOC 20463: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Implementing a Data Warehouse with Microsoft SQL Server

Continuous integration for databases using Redgate tools

Implement a Data Warehouse with Microsoft SQL Server 20463C; 5 days

Course 20463:Implementing a Data Warehouse with Microsoft SQL Server

SQL SERVER DATA TOOLS WORKSHOP. Everything you need to know to get started

Microsoft. Course 20463C: Implementing a Data Warehouse with Microsoft SQL Server

SQL Server Training Course Content

Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012

East Asia Network Sdn Bhd

Implementing a Data Warehouse with Microsoft SQL Server 2012

Exam Name: IBM InfoSphere MDM Server v9.0

Implementing a Data Warehouse with Microsoft SQL Server 2014

For Sales Kathy Hall

Implementing a Data Warehouse with Microsoft SQL Server

Beginning SQL Server Administration. Apress. Rob Walters Grant Fritchey

Implementing a Data Warehouse with Microsoft SQL Server 2012

Course Outline: Course: Implementing a Data Warehouse with Microsoft SQL Server 2012 Learning Method: Instructor-led Classroom Learning

Implementing a Data Warehouse with Microsoft SQL Server 2012 MOC 10777

How to set up SQL Source Control. The short guide for evaluators

MS 10977B Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Implementing a SQL Data Warehouse 2016

Implementing a Data Warehouse with Microsoft SQL Server 2012

IBM InfoSphere MDM Server v9.0. Version: Demo. Page <<1/11>>

Course Outline. Module 1: Introduction to Data Warehousing

Microsoft Visual Studio Integration Guide

Application Development With Data Studio

The Lifecycle of a Reporting Services Report

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014 va

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Beta: Implementing a Data Warehouse with Microsoft SQL Server 2012

Developing Microsoft Azure Solutions 20532B; 5 Days, Instructor-led

BI xpress Product Overview

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

SQL and PL/SQL Development and Leveraging Oracle Multitenant in Visual Studio. Christian Shay Product Manager, NET Technologies Oracle

KonyOne Server Installer - Linux Release Notes

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Using Oracle Data Integrator with Essbase, Planning and the Rest of the Oracle EPM Products

SQL Server 2014 Upgrade Technical Guide

Visual Basic. murach's TRAINING & REFERENCE

Writers: Joanne Hodgins, Omri Bahat, Morgan Oslake, and Matt Hollingsworth

Vladimir Bakhov AT-Consulting +7 (905)

Updating Your SQL Server Skills from Microsoft SQL Server 2008 to Microsoft SQL Server 2014

Oracle Data Integrator: Administration and Development

Smart Client Deployment with ClickOnce. Brian Noyes IDesign, Inc. (

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

2933A: Developing Business Process and Integration Solutions Using Microsoft BizTalk Server 2006

Implementing a Data Warehouse with Microsoft SQL Server 2012

AB Suite in the Application Lifecycle

PASS4TEST 専 門 IT 認 証 試 験 問 題 集 提 供 者

LEARNING SOLUTIONS website milner.com/learning phone

MS 10978A Introduction to Azure for Developers

WINDOWS AZURE SQL DATA SYNC

PROJECTIONS SUITE. Database Setup Utility (and Prerequisites) Installation and General Instructions. v0.9 draft prepared by David Weinstein

Implementing Data Models and Reports with Microsoft SQL Server 20466C; 5 Days

Continuous integration for databases using Red Gate tools

Automating Business Processes Using SharePoint Designer

SQL SERVER DEVELOPER Available Features and Tools New Capabilities SQL Services Product Licensing Product Editions Will teach in class room

How To Import And Re-Import Data From An Infosphere Data Model To An Infosplash Server On A Pc Or Macbook

Jenkins and Chef Infrastructure CI and Application Deployment

Oracle Business Intelligence Foundation Suite 11g Essentials Exam Study Guide

Updating Your SQL Server Skills to Microsoft SQL Server 2014

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

<Insert Picture Here> Move to Oracle Database with Oracle SQL Developer Migrations

PrivateWire Gateway Load Balancing and High Availability using Microsoft SQL Server Replication

Updating Your SQL Server Skills to Microsoft SQL Server 2014 (10977) H8B96S

Vault Project - Plant Database Replication. Contents. Software Requirements: AutoCAD Plant 3D 2016 and AutoCAD P&ID 2016

Updating Your SQL Server Skills to Microsoft SQL Server 2014

Continuous Integration (CI)

How To Write Unit Tests In A Continuous Integration

Microsoft Implementing Data Models and Reports with Microsoft SQL Server

Installing Cobra 4.7

Testing Tools using Visual Studio. Randy Pagels Sr. Developer Technology Specialist Microsoft Corporation

Sisense. Product Highlights.

Working with SQL Server Integration Services

Application Development

Web based training for field technicians can be arranged by calling These Documents are required for a successful install:

Schematron Validation and Guidance

SYSPRO Point of Sale: Architecture

Key Benefits of Microsoft Visual Studio Team System

Implementing and Administering an Enterprise SharePoint Environment

10977B: Updating Your SQL Server Skills to Microsoft SQL Server 2014

Transcription:

Develop your Database using Database Projects from SQL Server Data Tools (SSDT) Prepared for SQL Saturday #441 September 2015 Sep-15 1

Agenda Slides - 25 minutes What is SSDT and declarative development Local DB Creating a database project Project Properties Database References Pre and Post Deployment Scripts Build, Debug, and Publish Refactoring Lifecycle Management Demo - 25 minutes Q&A - 5 minutes Sep-15 2

About Me Andy Vold Architect with RevGen Partners Work primarily in business intelligence, SSIS/ETL, and database development. Telemark Skier and Mountain Biker Twitter: @volda2000 Email: avold@revgen.com Sep-15 3

What is SSDT? SQL Server Data Tools (SSDT) transforms database development by introducing a ubiquitous, declarative model that spans all the phases of database development inside Visual Studio. You can use SSDT Transact-SQL design capabilities to build, debug, maintain, and refactor databases. You can work with a database project, or directly with a connected database instance on or offpremise. Sep-15 4

Versions of SSDT SSDT is not the same as SSDT-BI SSDT is free SSDT can be installed standalone or can be integrated into an existing Visual Studio installation. For the preview release, SSDT is supported with Visual Studio 2015 and Visual Studio 2013. If you already have the Professional or higher edition of Visual Studio 2015 or Visual Studio 2013 and did not opt out of installing SQL Server Data Tools during setup, then your machine has an existing installation of SSDT. https://msdn.microsoft.com/en-us/library/mt204009.aspx Sep-15 5

Versions of SSDT Sep-15 6

Declarative Development In computer science, declarative programming is a programming paradigm, a style of building the structure and elements of computer programs, that expresses the logic of a computation without describing its control flow Define what you want, not how you get there Sep-15 7

Declarative Development with SSDT No more manual change scripts Model is built on source controlled scripts Enables offline development Allows model to be in an inconsistent or incomplete state Broken dependencies will be immediately flagged by the complier Rules can be optionally enforced over the model Sep-15 8

Declarative Development Build Type Property Build Build Extension Configuration (2013 +) Compile Deployment Extension Configuration (2013 +) None Post Deploy (only one per project) PreDeploy (only one per project) RefactorLog Sep-15 9

Declarative Development - Object Type Sep-15 10

What is Local DB? LocalDB is a version of SQL Server Express created specifically for developers. LocalDB is a fast, lightweight SQL Server instance that requires minimal management or configuration. SSDT installs and uses LocalDB as a debug database to provide a sandboxed environment for building, testing, and debugging your project. Sep-15 11

Local DB As a default, SSDT also sets your database project to target LocalDB during debugging. This means that without any configuration, F5 is already wired to build your database project and deploy it to LocalDB. Sep-15 12

Creating a SSDT Database Project Two Options Import existing Create new Sep-15 13

Project Settings Default schema Database settings Deployment server and deployment options Errors & Warnings Sep-15 14

Database References Three types of database references System DB s Project Same VS Solution No circular references Dacpac Sep-15 15

Pre & Post Deployment Scripts Supports changes outside of schema changes Can be used to remove data or add data Files are interpreted as SQLCMD scripts by SSDT. You can use most valid SQLCMD syntax within the script You are allowed only one Pre and one Post deployment script in a project Sep-15 16

Build, Debug, and Publish BUILD Verifies all references resolve Verifies no syntax errors Builds a dacpac Sep-15 17

Build, Debug, and Publish DEBUG Deploys the pre deployment, schema, and post deployment to the database configured in the properties Sep-15 18

Build, Debug, and Publish PUBLISH Deploys the pre deployment, schema, and post deployment to the database of choice Can either generate a script or push change Sep-15 19

Refactor Rename (column or object) Move to Schema Expand Wildcards Fully-qualify Names Sep-15 20

Refactor Sep-15 21

Lifecycle Management Put Database in Version Control Use Branching Use Schema compares to generate migration scripts Project vs. Development Development vs. UAT UAT vs. Production Sep-15 22

Lifecycle Management Schema Compare Sep-15 23

Sep-15 24

Thank you to all of our Sponsors! Diamond Sponsors Platinum Sponsors Gold Sponsors Marquee Sponsors 25 9/19/2015 SQLSaturday #441 Denver 2015

Thank you to all of our Sponsors! Silver Sponsors SWAG Sponsors 26 9/19/2514 SQLSaturday #441 Denver 2015