Download presentation
Presentation is loading. Please wait.
Published byGeoffrey Wilson Modified over 9 years ago
2
Microsoft Ignite 2015 4/25/ :39 PM SSDT for Visual Studio Bet you can’t tell what your database looked like 6 months ago Hannah Gray, Development Team Lead, Xero M222 Images: Can Stock Photo Inc. (under license) or openclipart.org (Public Domain CC1.0) © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
3
What is SSDT?
4
SQL Server Data Tools Build, debug, maintain and refactor databases
Declarative SQL Added functionality for Visual Studio Version control
5
So, why?
6
Our Code vs Our Databases
Microsoft Ignite 2015 4/25/ :39 PM Our Code vs Our Databases Source control Deployable Versioning Unit Testing Continuous Integration Continuous Deployment No source control Maintained Production is the version What’s that? … © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7
Commit changes to source control
Publish / run directly on server(s)
8
What did my schema look like a month ago?
9
I need to reproduce a bug we introduced last release
Microsoft Ignite 2015 4/25/ :39 PM I need to reproduce a bug we introduced last release © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
Could I have variations of my schema?
11
I’m a highly trained [DBA/developer] and I’m hand crafting ALTER scripts
12
Commit changes to source control
Deploy Build solution
13
Sound familiar?
14
SQL Server Database Engine
Microsoft Ignite 2015 4/25/ :39 PM Reporting Services Analysis Services Integration Services SQL Server Database Engine Business Intelligence Development Studio Visual Studio Database Edition for Professionals SQL Server Data Tools SQL Server Data Tools – Business Intelligence SQL Server Data Tools – Database Project © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
15
SQL Server Data Tools for Visual Studio
Microsoft Ignite 2015 4/25/ :39 PM SQL Server Data Tools for Visual Studio Visual Studio 2012*+ Integrated Enterprise Professional Community SQL Server 2005 – 2016*, Azure Frequently updated Free © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
16
What’s new?
17
Things got better .dbproj .dbschema vsdbcmd.exe Deploy/comparisons
Microsoft Ignite 2015 4/25/ :39 PM Things got better .dbproj .dbschema vsdbcmd.exe Deploy/comparisons SQL Version-specific projects .sqlproj .dacpac sqlpackage.exe Numerous new options Single project type Better, faster, stronger © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
18
Things got cleaner and simpler
Microsoft Ignite 2015 4/25/ :39 PM Things got cleaner and simpler Server and Database projects SQLCLR in separate project Enforced folder, file structure .sqlcmdvars, .sqldeployment .sqlpermissions .sqlsettings One project to rule them all Do what you want! *.publish.xml files Project properties © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
19
Things got added Live Database Debugging T-SQL Object Editor
20
Let’s take a look Hannah Gray Microsoft Ignite 2015 4/25/2017 11:39 PM
© 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
21
A note on order of operations
Microsoft Ignite 2015 4/25/ :39 PM A note on order of operations Schema Comparison Script generation (delta) Deploy Execute Pre Deployment Execute generated script Execute Post Deployment © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
22
You made it!
23
We’ve now got the ingredients…
Microsoft Ignite 2015 4/25/ :39 PM We’ve now got the ingredients… Source control Who did what when and why Point-in-time view of schema Output (.dacpac) Command line tooling (sqlpackage.exe) Automation anyone? © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
24
We can spice things up with…
Microsoft Ignite 2015 4/25/ :39 PM We can spice things up with… Database Unit Testing Code Analysis / DacFx Composite Projects © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
25
Commit changes to source control
Deploy Build solution
26
Continuous Integration
Commit changes to source control Pull changes from source control Test Package the output Build solution Continuous Integration Deploy
27
Demos vs. reality TechEd 2013 4/25/2017 11:39 PM
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
28
We use it day in, day out We use SSDT for
Schema Logins, Users, Roles, Permissions Reference Data Linked Servers SQL Agent Jobs, Schedules One click deploy gives you a working database See all changes to any line, any time Automated deployment to any of our ~60 testing environments
29
Related Ignite NZ Sessions
1 4 Advanced SSDT and DACFx – Practical Techniques Ballroom 1, Thu 4:30pm The SQL Server Evolution: Overview New Zealand 3, Wed 9:00pm 2 What’s new in VS2015 and ALM2015 New Zealand 2, Wed 1:55pm and 3:10pm Find me later at… Hub Happy Hour Wed 5:30-6:30pm Hub Happy Hour Thu 5:30-6:30pm Closing drinks Fri 3:00-4:30pm 3 The Microsoft DevOps Vision New Zealand 2, Thu 9:00am
30
Resources Microsoft Virtual Academy TechNet & MSDN Flash
4/25/2017 Microsoft Virtual Academy Resources TechNet & MSDN Flash Free Online Learning Subscribe to our fortnightly newsletter Sessions on Demand © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
31
Complete your session evaluation now and be in to win!
4/25/ :39 PM Complete your session evaluation now and be in to win! © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
32
4/25/ :39 PM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.