Getting Your DB Schema Under Control With SSDT

Slides:



Advertisements
Similar presentations
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
Advertisements

Crystal And Elliott Edward M. Kwang President. Crystal Version Standard - $145 Professional - $350 Developer - $450.
Updating FireRMS Presented by Dan Cook Implementation Team Lead ZOLL.
Crystal And Elliott Edward M. Kwang President. Objective A brief demo of Crystal Report to entice you –People spend thousand of dollars to attend Crystal.
Database Projects in Visual Studio Improving Reliability & Productivity.
Visual Studio 2012: A Complete IDE (Debugging & Source Control) Kevin Howell.
Continuous Deployments using SSDT
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
Upgrade on Windows 7. DownloadSoftware Download Software from link provided in Webliography: e/
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Denver Visual Studio Users Group Lab January 19, 2007 Steve Wake.
How to Start SQL Server and SSDT BI in Local
SSIS Templates, Configurations & Variables
Recommended Practices & Fundamentals
SQL 2016 R Services a.k.a. leveraging your local data lake
Essentials of UrbanCode Deploy v6.1 QQ147
Visual Studio Database Tools (aka SQL Server Data Tools)
Agile Analytics: Automated Builds and Deployments
SQL Server deployments
Make Power BI Your Own with the Power BI APIs
Crash course on Better SQL Development
Welcome to WideWorld Importers
Module III: Business Analytics
Continuous Deployments using SSDT
Report Builder as Self Service BI Solution
Deploying and Configuring SSIS Packages
ROLAP partitioning in MS SQL Server 2016
Visual Studio 2010 Database Projects
SQL Server Client Tools 2018
MongoDB for SQL Developers
Intro to SQL Operations Studio
Intro to SQL Operations Studio
Principles of report writing
Populating a Data Warehouse
Populating a Data Warehouse
Crash course on Better SQL Development
Intro to SQL Server Reporting Services (SSRS)
DAX and the tabular model
Intro to Unit Testing with tSQLt
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Brandon Lukes SSMS Tips and Tricks.
SQL Saturday New York City May 19th, 2018
Querying Active Directory From SSRS
Populating a Data Warehouse
Visual Studio Database Tools (aka SQL Server Data Tools)
Populating a Data Warehouse
Continuous Deployments using SSDT
Crash course on Better SQL Development
Continuous Deployments using SSDT
Crash course on Better SQL Development
Cross-Platform, Cloud and On-Premise Database Tool
SSIS Deployment Smackdown!
SSIS Deployment Smackdown!
Continuous Deployments using SSDT
Database Projects and Source Control (TFS)
ETL Automation using Biml
SSDT and Database Project Basics
Reporting on a Cube with SSRS
Power BI with Analysis Services
Cross-Platform, Cloud and On-Premise Database Tool
Crash course on Better SQL Development
SSIS Data Integration Data Warehouse Acceleration
Michael Wall Senior DBA, Great Western Malting
A Reluctant User’s Guide
Database Projects and Source Control (TFS)
SSIS - Overview John Manguno. SSIS - Overview John Manguno.
SSIS Data Integration Data Warehouse Acceleration
Just Enough SSIS Scripting to be Dangerous.
SSDT, Docker, and (Azure) DevOps
Bringing source control to BI world!
Presentation transcript:

Getting Your DB Schema Under Control With SSDT Peter A. Schott Getting Your DB Schema Under Control With SSDT

Intro to SSDT What is SSDT? Why would you use it? Brief history SSIS SSAS SSRS Databases VS DB Projects – large files, long build/compare times SSDT – split into SSDT (DB Projects) and SSDT-BI – lots of confusion. BI Projects were version-specific Current SSDT release – DB Projects, SSIS, SSAS, SSRS – can handle multiple (modern) SQL Versions This presentation – DB Projects. Why? To get control of your schema in files that can go into source control.

Installing SSDT Official source Don’t need VS installed – will install a VS shell Only install components you need/use DB Projects installed by default DB Projects also included in full Visual Studio 2015/2017 installs https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt

Demo Time!

Common Errors and Issues After Import 3-Part DB Names (current database) Cross-database views/functions/procs Linked Server references Users/Logins not often the same in all environments See next slides

Dealing with 3-Part DB Names – Current DB SSDT doesn’t know the current database name Find/Replace is your friend Limit to *.sql files Variations DBName.dbo. DBName.. [DBName].[dbo]. etc.

Cross-Database Objects Database References Use a common storage location May need to use SQLPackage to extract a dacpac Watch your variable settings! Sometimes the import just doesn’t work. Leave variable blank if DB name will always be the same Choose “Different Database, Different Server” for linked server dbs https://msdn.microsoft.com/en-us/library/hh550080(v=VS.103).aspx

Linked Servers Similar to Cross-Database objects Set your options and variables appropriately Doesn’t seem to work w/ OPENQUERY

Users/Logins Easiest to ignore initially Use DB Roles Import puts these in the “Security” folder If you really need this, there are ways… https://schottsql.wordpress.com/2013/05/14/ssdt-setting-different-permissions-per-environment/ Kudos to Jamie Thomson for the idea

Back to the Project!

Potential Gotchas Large numbers of objects External databases Users and Permissions Rollbacks SQL Server-only features such as FileStream

Where to Get Help Stack Overflow: https://stackoverflow.com/questions/tagged/ssdt MS Forums: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=ssdt&forum=ssdt SQL Community Slack: https://sqlps.io/slack/

Questions? Peter Schott | @paschott paschott@outlook.com http://schottsql.wordpress.com Files: https://github.com/paschott/SSDT_101 Rate this presentation: http://spkr8.com/t/75511