SSDT and Database Project Basics

Slides:



Advertisements
Similar presentations
Module 5: Routing BizTalk Messages. Overview Lesson 1: Introduction to Message Routing Lesson 2: Configuring Message Routing Lesson 3: Monitoring Orchestrations.
Advertisements

AXC01 DIXF: The Microsoft Dynamics AX Data Import and Export Framework
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Business Intelligence components Introduction. Microsoft® SQL Server™ 2005 is a complete business intelligence (BI) platform that provides the features,
(code name: Data Dude) Josh Robinson Aculix.
Passage Three Introduction to Microsoft SQL Server 2000.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
T EAM F OUNDATION S ERVER IN D EVELOPMENT Kambiz Saremi.
Oracle Developer Tools for Visual Studio.NET Curtis Rempe.
SQL Server Integration Services (SSIS) Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server (MVP) Microsoft Certified Technology Specialist.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Presentation Name / 1 Visual C++ Builds and External Dependencies NAME.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
1 MSTE Visual SourceSafe For more information, see:
Neil Kidd Developer Tools Technical Specialist Microsoft UK.
Microsoft Corporation. Announcement Visual Studio® Team System 2008 Enables you to Build Quality Code Be More Productive Collaborate at the Next Level.
Visual Studio 2012: A Complete IDE (Debugging & Source Control) Kevin Howell.
TEAM FOUNDATION VERSION CONTROL AN OVERVIEW AND WALKTHROUGH By: Michael Mallar.
Continuous Deployments using SSDT
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19.
Database Development with SQL Server Data Tools (SSDT) Björn Eriksen, Architect Evangelist DPE Microsoft
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Introduction to SSDT Daniel Maxic Important note: in order to make this presentation I have used some of the content.
Tools and technology usage in PFMS application lifecycle management process LEPL Financial-Analytical Service, Ministry of Finance October, 2015 Dimitri.
Top 10 Entity Framework Features Every Developer Should Know
Introduction ITEC 420.
DevOps with ASP.NET Core and Entity Framework Core
Building Enterprise Applications Using Visual Studio®
Dive Into® Visual Basic 2010 Express
SQL Compare & SQL Refactor
Visual Basic 2010 How to Program
Introduction to Entity Framework
Visual Studio Database Tools (aka SQL Server Data Tools)
Agile Analytics: Automated Builds and Deployments
SQL Server deployments
Introduction to ASP.NET 2.0
Continuous Deployments using SSDT
Deploying and Configuring SSIS Packages
Microsoft Access 2003 Illustrated Complete
Introduction to Team Foundation Server 2010
Introducing New Team-based Data Integration with SSIS
Introduction of Week 3 Assignment Discussion
Module 1: Getting Started
SQL Server Data Tools Gert Drapers
Boosting SSAS Productivity with Tabular Editor
Prove to your boss your database is sound - Unit Testing with tSQLt
Web Development Using ASP .NET
Intro to Unit Testing with tSQLt
CIS16 Application Development – Programming with Visual Basic
Visual Studio Database Tools (aka SQL Server Data Tools)
Continuous Deployments using SSDT
Continuous Deployments using SSDT
Continuous Deployments using SSDT
Database Projects and Source Control (TFS)
DAT381 Team Development with SQL Server 2005
Paul S Waters Getting Git.
Introduction to VSTS Database Professional
Entity Framework Core for Enterprise Applications
SSIS Data Integration Data Warehouse Acceleration
Office 365 Development July 2014.
Introduction to ASP.NET Parts 1 & 2
Database Projects and Source Control (TFS)
Mark Quirk Head of Technology Developer & Platform Group
SSIS Data Integration Data Warehouse Acceleration
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
SSDT, Docker, and (Azure) DevOps
Samir Behara, Senior Developer, EBSCO
Presentation transcript:

SSDT and Database Project Basics SQL Server Data Tools 2016 SSDT and Database Project Basics

Content Map Introduction Visual Studio Tooling Database Projects Useful SSDT Tools Advanced Concepts

Introduction Steve Grier - Associate Architect with Computer Enterprise, Inc. (CEI) www.ceiamerica.com Microsoft P-Seller; Partner Technical Specialist 10+ years experience working with SQL Server 10+ years working as a .NET software developer 6 years working as a windows system administrator

SSDT Overview Manage Development Built on Visual Studio SSAS Cubes & Tables SSRS Reports SSIS Packages Database Schema Built on Visual Studio Complete IDE Functionality

SSDT Project Types Analysis Services Projects Database Project Integration Services Project Report Project

Fun Stuff First! DEMO Extract Modify Build Publish

Visual Studio Tooling

Visual Studio Development Project and File based Approach Solution – Collection of Projects Project(s) – Collection of Files Folder(s) – Used for organization File(s) – Object definitions

Solutions Define Projects, Files, Build Configurations and Build Dependencies Plain Text formatting Created by default

Projects Collection of Source Code and Reference Files Unit of Build and Deployment Defines organizational structure of Files Holds Build, Debug, Package and Deployment Configuration XML formatting Build – Checks Syntax; Checks Model Integrity; Packages everything for deployment

Database Projects

Database Project Collection of SQL objects Builds a DACPAC for Deployment Deployment-time Script Support Refactor Support

Project Structure Default organization is: Schema\Object_Type\ObjectName Individual Files can be included/excluded from the Build Project properties Project references

Project Files Declarative Statements (Create not Alter) T-SQL Syntax Content and Properties Content in File Properties in Project Best Practice One object per File

Project Properties Project and Database level settings Target Platform (SQL Server version)

Database Settings sp_configure options Recovery options Collation Compatibility Other Database- level settings/defaults

File Properties View from Properties Window (View-Properties Window [F4]) Bold properties stored in project file Build Actions Build – include as SQL object None – do not compile PreDeploy – run script before deployment PostDeploy – run script after deployment RefactorLog – list of rename actions

Useful SSDT Tools

Schema Compare SQL Compare Examine the structure of source and target database definitions Can compare Database Projects, Dacpacs or SQL Server Databases Differences are listed with changes highlighted Targets can be updated directly from SQL Compare

Data Compare Data Compare Examine the data in a source and target database Objects with matching table names and primary keys can be examined Targets can be updated to add/modify/remove records Foreign Keys are dropped/recreated during updates

Advanced Concepts

Pre and Post Deploy Scripts One Pre Deploy and One Post Deploy script Reference other script files SQLCMD format Runs as part of the deployment process Built at Compile Time, not Deployment Time (target unspecific)

Pre and Post Deploy Patterns Idempotent Scripts Check then Execute Echo actions using PRINT statements Create a migrations table to track migration scripts Avoid environment specific actions where possible

Database References Useful to split a database up into multiple sub-projects Allows inheriting sections of a database definition in multiple projects Use to enable cross-database querying in database project objects Avoid where possible because of added complexity

Source Control ! Must Use Licensed Version Of Visual Studio ! Version Changes to Projects and Files Branch and Merge to maintain concurrent development Keep a released branch for patch development and bug fixes Keep a development branch for new features Move/Sync changes between the two branches Manage and Prioritize changes with a Product Backlog Link object changes to Backlog Items and Tasks

Continuous Integration & Continuous Deployment Automate build and release with tools like Visual Studio Team Services (VSTS) or Team Foundation Server (TFS) Constantly build and release changes to detect issues as soon as possible in the development projects Greatly increase consistency and deployment reliability

Questions?

Thank You! Steve Grier sgrier@ceiamerica.com