Database Code Management with VS 2017 and RedGate Rushabh Mehta Founder & President, Matchbook Services @Rushabhmehta When doing agile development, whether you have 1 production target database or in case of a SaaS solution, multiple targets, database change management becomes extremely crucial. One of the challenges with traditional SSDT projects are that they work on the "as-is" model through the development cycle and obfuscate the details of how actual changes would be applied. In this session, we will look at how to use the RedGate tools now available inside Visual Studio 2017 to manage the development process and gain better control over your deployments. This session will cover my experiences, tips and tricks with managing a Cloud SaaS solution and we will look at how Visual Studio 2017 and the RedGate family of tools provide tremendous value and higher confidence with our product releases.
Introduction Founder & President, Matchbook Services Principal Architect, SolidQ 20+ Years implementing Microsoft BI and Analytical solutions Community Past President, Professional Association for SQL Server Microsoft Data Platform MVP (11 years) Melissa Data MVP Dun & Bradstreet MVP Email: rmehta@matchbookservices.com Twitter: @rushabhmehta Blog: http://matchbookservices.com/blog/ LinkedIn: https://www.linkedin.com/in/rushabhbmehta/ 2 | The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
Agenda New Data Management Components in Visual Studio 2017 Installing the RedGate Tools as part of VS 2017 install ReadyRoll vs SSDT ReadyRoll 3 | The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
Visual Studio 2017 New Components ReadyRoll Core Develop, source control and safely automate deployments of database changes SQL Prompt Core Advanced intellisense and code completion SQL Search Rapidly find SQL objects and references within or across databases The 1st EVER #SQLSatLA
Installing The 1st EVER #SQLSatLA
ReadyRoll vs SSDT VS 2017 still supports SSDT ReadyRoll is an alternative to SSDT SSDT is A powerful database development environment within VS State-base approach Key Differences with ReadyRoll Migration-based approach More control by developers over the end database deployment scripts ReadyRoll Core only available in Enterprise We like to think of ReadyRoll as an alternative to SSDT database projects that allows developers to have more control over the end database deployment script. Whether you use a ReadyRoll project or SSDT project is up to you and will depend on your needs. Even when you’re using a ReadyRoll project, you can still use SSDT features such as the Table Designer and the ability to View and Edit data. With SSDT database projects, you are given a list of ingredients and a picture of what the end cake will look like; the beginning and end state. How you get there is derived. With ReadyRoll Core, you are given the recipe telling you what to do each step of the way to turn the ingredients into a cake. https://blogs.msdn.microsoft.com/ssdt/2017/03/10/sql-server-data-tools-17-0-rc-and-ssdt-in-vs2017/ The 1st EVER #SQLSatLA
RedGate ReadyRoll Develop Side-by-side comparison Source Control Deployment Migration based approach Developers can modify migration scripts Managing your database changes and incorporating them into your DevOps pipeline has always been difficult. Keeping track of what scripts need to be run and managing database states is often painful and error-prone. ReadyRoll Core simplifies this process by turning changes to your database schema into database migration scripts. These migration scripts can then be checked into source control and deployed to your other databases. When you’re working in a ReadyRoll project and make changes to your development database using Visual Studio, SQL Server Management Studio, or another tool of choice, ReadyRoll Core will list the changes you’ve made and show you the differences. Developers can modify migration scripts to gain more precise control over how changes are applied The 1st EVER #SQLSatLA
ReadyRoll Side-by-side Comparison The 1st EVER #SQLSatLA
Demo Creating a new ReadyRoll project and baselining your database Managing new changes/releases SQL Prompt SQL Search Demo The 1st EVER #SQLSatLA
Summary At the end of this session, you should have learned: How to take advantages of new features in VS 2017 for database code management How to use ReadyRoll for database and deployment management A little bit about SQL Prompt and SQL Search 10 | The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
References https://blogs.msdn.microsoft.com/visualstudio/2017/03/07/redgate-data-tools-in-visual-studio-2017/ https://blogs.msdn.microsoft.com/ssdt/2017/03/10/sql-server-data-tools-17-0-rc-and-ssdt-in-vs2017/ http://www.red-gate.com/products/sql-development/readyroll/ http://www.red-gate.com The 1st EVER #SQLSatLA
Please Support Our Sponsors SQL Saturday in Los Angeles is made possible with the generous support of these sponsors. You can support them by opting-in and visiting them in the sponsor area. The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
Questions? Email me at rmehta@matchbookservices.com Or tweet me @rushabhmehta Thank you! 13 | The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
SoCal Local User Groups Orange County User Group L.A. User Group 3rd Thursday of each odd month sql.la SQL Malibu User Group 3rd Wednesday of each month sqlmalibu.pass.org Los Angeles - Korean Every Other Tuesday sqlangeles.pass.org San Diego User Group 1st & 3rd Thursday of each month meetup.com/sdsqlug meetup.com/sdsqlbig Orange County User Group 2rd Thursday of each month bigpass.pass.org Sacramento User Group 1st Wednesday of each month http://sac.pass.org/ The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center
Upcoming SQL Saturdays in California SQL Saturday in Sacramento 2017 (#650) When: Saturday, July 15, 2017 http://sqlsaturday.com/650/eventhome.aspx SQL Saturday in San Diego 2017 (#661) When: Saturday, September 23, 2017 http://sqlsaturday.com/661/eventhome.aspx The 1st EVER #SQLSatLA on June 10th 2017 Microsoft Technology Center