Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.

Slides:



Advertisements
Similar presentations
2012 © Trivadis BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN Welcome November 2012 Effiziente Data.
Advertisements

Develop your database with Visual Studio
The SSDT way or the highway
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
#sqlsatPordenone #sqlsat367 February 28, 2015 Testing your databases Alessandro
(code name: Data Dude) Josh Robinson Aculix.
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
4/19/2017 7:47 PM DBI311 Microsoft SQL Server Data Tools: Database Development from Zero to Sixty Gert Drapers Principal Group Program Manager.
Data-tier Application, Import, Refactoring, Publish, Schema Comparison, Database Unit Testing Borislav Statev Telerik Software Academy academy.telerik.com.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Microsoft Ignite /23/2017 3:56 PM Advanced SSDT and DACFx Practical techniques for real world database development and deployment Darren Hall M359.
Database Unit Test MSSQL 2008 & VS 2010 Aung Kyaw Myo.
17-20 OCTOBER 2011 DURBAN ICC. What code-database gap? Introducing Project Codename “Juneau” William
Mirek Sztajno SQL Server Security PM
Database Projects in Visual Studio Improving Reliability & Productivity.
Microsoft SQL Server Data Tools: Database Development from Zero to Sixty Gert Drapers Principal Group Program Manager Microsoft Corporation.
Virtual techdays INDIA │ august 2010 Data-tier Applications in Visual Studio 2010 Abhishek Kala │ Partner Technical Consultant, Microsoft Global.
Introducing Application and Multi-Server Management.
Continuous Deployments using SSDT
Inspirirani ljudima. Ugasite mobitele. Hvala.. Paolo Pialorsi Senior Consultant PiaSys ( Publishing apps for SharePoint 2013 on Microsoft.
Managing Database objects in Visual Studio and Team Foundation Server Presented by Sean P SQL Saturday - Phoenix 2016.
Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19.
Sql Server 2012 Data Tools & Development Enhancements Emrah USLU Teknoloji Danışmanı TCM | Teknoloji Çözümleri Merkezi.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 18/06/2016David Postlethwaite.
Database Development with SQL Server Data Tools (SSDT) Björn Eriksen, Architect Evangelist DPE Microsoft
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Introduction to SSDT Daniel Maxic Important note: in order to make this presentation I have used some of the content.
Microsoft Dynamics NAV Microsoft Dynamics NAV managed service for partners, under the hood Dmitry Chadayev Corporate Vice President, Microsoft.
Migrate DB to Azure SQL Taiob M Ali.
SSDT Database Projects from the ground up
Introduction ITEC 420.
Stress Free Deployments with Octopus Deploy
What Is The SSIS Catalog and Why Do I Care?
Launch Your Database Into Microsoft Azure
Visual Studio Database Tools (aka SQL Server Data Tools)
SQL Server deployments
Continuous Deployments using SSDT
The Future of Database Development with SQL Azure
Migrating to Windows Azure SQL Database
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Visual Studio 2010 Database Projects
Application Lifecycle Management – Best Practices for SharePoint and Office App development November 2015.
Build /21/2018 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
SQL Server Data Tools Gert Drapers
Continuous Integration For Databases
11/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Prove to your boss your database is sound - Unit Testing with tSQLt
Launch Your Database Into Azure
Visual Studio Database Tools (aka SQL Server Data Tools)
Continuous Deployments using SSDT
Cloud Data Replication with SQL Data Sync
Continuous Deployments using SSDT
Cross-Platform, Cloud and On-Premise Database Tool
Continuous Deployments using SSDT
Database Projects and Source Control (TFS)
TechEd /18/2019 2:43 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
SSDT and Database Project Basics
Microsoft Office Not in Textbook.
Introduction to VSTS Database Professional
Cross-Platform, Cloud and On-Premise Database Tool
Mario…Take My Data To The Cloud!
DEV322 Visual Studio 2005 C# IDE Enhancements
TechEd /28/ :34 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Keeping your SQL Code safe
SSDT, Docker, and (Azure) DevOps
Introduction to ASP.NET Parts 1 & 2
Database Projects and Source Control (TFS)
SSDT, Docker, and (Azure) DevOps
Microsoft 365 Business Technical Fundamentals Series
Navigating SSMS Primer for Beginners
Presentation transcript:

Others Talk, We Listen. Managing Database Projects in Visual Studio 2013

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 2 MCSE and PMP certified IT Consultant with CapTech since 2006 and have 13 years of Microsoft SQL Server experience projects Computer Science degree from the University of Richmond Masters degree in IT Management from the University of Virginia Founded my own MLB Data Analytics Company About Me –

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 3 Visual Studio’s previous Database Project hasn’t been a sustainable way to create, manage, source control, schema compare, and deploy database objects. What Problems Do We Face Managing DB Schemas? First we model, develop and test in SQL Server Management Studio (SSMS) Then, we go to VS or another source control tool and retroactively make changes to reflect our work Finally, we script our changes and loop in DBAs and Release Managers

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 4 Project managed in Visual Studio, similar to.NET All objects are stored as scripts with folder structure Pre/Post Deployment scripts allow for data management Better Solution? Build to a local or dev server. 1-Click Publish to other targets with custom settings Latest enhancements are Azure focused Source Control actually works!!

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 5 Visual Studio Professional 2013 Requires linking to an MSDN license SQL Server Object Explorer replaces a lot of SSMS SQL Server Data Tools Much of what was BIDS Make sure you have the latest version of SSDT by going to the Visual Studio SQL menu and selecting Check for Updates Data-Tier Application Framework (DACFX) DLL by VS and SSMS, installer independent of SSDT Software

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 6 3 ways to begin Using a SQL Server Data-tier Application extract file (*.dacpac) Connecting directly to a SQL Server database Using one or multiple script files with all the object definitions Each file is a.sql file Recommend storing by schema/object type Always as a Create (no Alter/Drop) Table designer and script editor are familiar to Management Studio Also includes full T-SQL DDL And there’s real time errors and Intellisense! Project Setup

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 7 Import existing DB to project Add new table (dbo.Team) Add new view (lkup.vPitcherOrder) Add new column Rating to table Umpire Add new index to AtBat Add missing FK between Action and Game Demo

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 8 Project has a SQL Server target version Set if not 2014 Build & Debug use the Target Connection for data work Add references to other databases (master) Allows for use of sys.objects and other things useful in dynamic SQL Snapshots allow for platform specific validations, comparisons and deployments Project Properties and Snapshots

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 9 Can compare Project to Database or vice versa. Update directly from GUI, but only left to right. Great for previewing changes or synching without full deployment Handles Add/Change/Deletes to objects, not data Able to save comparison settings for later use Uncheck “Block incremental deployment if data loss might occur Schema Comparison

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 10 No more collecting scripts across environments!! Permitted one Pre and one Post deployment script These can execute other scripts stored in the project Recommend using MERGE statements Right click on the project and select Publish Interface has connection and many settings options Able to preview the script first Able to save and reuse publishing settings in XML Can also do via schema compare or DACPAC Deployments

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 11 Integrates with TFS, SourceTree/GIT Automatically detects check outs Easy to commit and sync changes Versioning in the tool is seamless Publish xmls can be saved here too Key to always perform a debug before commit to ensure all changes are valid in the project. Source Control

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 12 Add new script to populate Team table Add new Post Deployment process (not in build) Schema Compare, Build Deploy to remote server Demo

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 13 A DACPAC with data included Equivalent of a database backup and cannot be used to upgrade existing databases. Purpose is to move a database from one server to another, or the cloud, and archiving an existing database in an open format. BACPAC Portable artifact that can be deployed/applied to a database instance. Purpose is to deploy a tightly defined schema to DEV/QA/PROD Also, apture PROD schema and applying it to back to QA/DEV. Can also be extracted from an instance DACPAC Logical database management entity that defines all of the SQL Server objects DB must be registered as part of the process Encompasses tables, view, logins etc DAC Data-tier Applications (DAC vs DACPAC vs BACPAC)

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 14 Different ways to deploy a DACPAC: Visual Studio SQL Server Management Studio SqlPackage Windows PowerShell DacFx API DACPAC Continued

15 Thank You Sponsors

Copyright © 2015 CapTech Ventures, Inc. All rights reserved. 16 What did you think?

Others Talk, We Listen. Questions?