Database Projects and Source Control (TFS)

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 Use of Microsoft based Technologies for the benefit of the Community Prof. Avi Mendelson – Microsoft & Technion - Taub 643.
MSDN TechTalk Agenda Visual Studio Team Edition for Database Professionals 08:30 – 09:00 Registration 09: :15 (Roger Boesch, Microsoft Schweiz) Einbindung.
(code name: Data Dude) Josh Robinson Aculix.
LaMothe DirectX Game in Visual Studio 2008 Matthew Sable.
What does SQL Server Management Studio mean? Cortex User Group Meeting Portland – 2012 What does SQL Server Management Studio mean? Cortex User Group Meeting.
Test-Driven Development With Visual Studio 2005 Erno de Weerd Info Support.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
@benday #vslive Automated Build, Test & Deploy with TFS, ASP.NET, and SQL Server Benjamin
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
1 Databound Controls. 2 Objectives You will be able to use design time data binding to display and update SQL Server database data without writing any.
Source Code Control CSE 3902 Matt Boggus. Source code control options for CSE 3902 Must use source code control that is integrated with Visual Studio.
Top Ten Tips for Team Foundation Server Martin Woodward Teamprise.
Refactoring and Synchronization with the StarTeam Plug-in for Eclipse  Jim Wogulis  Principal Architect, Borland Software Corporation.
Database Projects in Visual Studio Improving Reliability & Productivity.
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.
CIS 338: VB.NET Printing Dr. Ralph D. Westfall May, 2011.
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.
Template Package  Presented by G.Nagaraju.  What is Template Package?  Why we use Template Package?  Where we use Template Package?  How we create.
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Continuous Integration for Databases Steve Jones SQLServerCentral Red Gate Software.
Tools and technology usage in PFMS application lifecycle management process LEPL Financial-Analytical Service, Ministry of Finance October, 2015 Dimitri.
Migrate DB to Azure SQL Taiob M Ali.
DevOps with ASP.NET Core and Entity Framework Core
Source Code Control For CSE 3902 By: Matt Boggus.
How to Start SQL Server and SSDT BI in Local
Visual Studio Database Tools (aka SQL Server Data Tools)
SQL Server deployments
Continuous Deployments using SSDT
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Database Projects and Source Control (TFS)
Dimodelo Solutions.
Beginner Table Partitioning
Simple Steps to Resolve QuickBooks Error Code 6007 Avant-garde application, QuickBooks have garnered attention of small and mid- sized business all across.
Source Code Management
SQL Server Data Tools Gert Drapers
Tips for SQL Server Performance and Resiliency
Discovering SSRS 2016 in Azure: Dataset to Deployment
Continuous integration and delivery of databases in web development
Visual Studio Database Tools (aka SQL Server Data Tools)
1. Open Visual Studio 2008.
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
Cyndi Johnson Senior Software Engineer at AdvancedMD Killing Cursors.
Git CS Fall 2018.
Real World Scrum with TFS & VSTS / Azure DevOps
Paul S Waters Getting Git.
SSDT and Database Project Basics
What about the Data Dude?
Introduction to VSTS Database Professional
NAVIGATING THE MINEFIELD
The visual studio window
GitHub 101 Using Github and Git for Source Control
Cyndi Johnson Senior Software Engineer at AdvancedMD Killing Cursors.
Hop Aboard the Git Train – Transitioning from TFVC
SSDT, Docker, and (Azure) DevOps
Michelle Haarhues Keeping up with SSMS.
Keeping your SQL Code safe
End of day Calculator and special order parts tracking
SSDT, Docker, and (Azure) DevOps
Bringing source control to BI world!
Samir Behara, Senior Developer, EBSCO
Presentation transcript:

Database Projects and Source Control (TFS) JUST DO IT Database Projects and Source Control (TFS)

Leslie Weed Data/BI Architect – RevGen Partners DataVault Certified 20+ years IT

Have you heard this? My code disappeared My SSMS crashed and I lost all my work My fix didn’t get pushed out or deployed I don’t know what the code was that worked yesterday (and now it is broken) I wish I knew who originally worked on this I don’t know if that commented out code should or should not be in there Someone overwrote my fixes

Solution Technology AND Process

Database Projects (DAC Projects) Manage changes Apply version control Standardization between environments Script differences quickly and easily

Version Control (TFS) Versioning Multi-developer environment AND solo developer environment Review History Track changes No disappearing code Risk mitigation for the business (not about what the developer perceives as overhead)

Database Projects New project Existing project Layout Settings

Now TFS Adding to Source Control Or getting an existing project Settings Changes/Checkin History

Tips & Tricks Naming conventions Versions Renaming objects (you could lose data!) Get latest at the solution level – always DML – set build property to “NONE” Always add objects in solution explorer – NOT in source control explorer Refactor

Solution Explorer NOT Source Control Explorer

Make sure this is checked!! Tools>Options>SourceControl>Visual Studio Team Foundation Server

What your team needs Setting up the process with your team Get the latest before checking in (daily at a minimum) Confirm Database is error free prior to checkin Designate a deployment lead Everyone has their own schema compare file Pay attention – don’t get click happy

Your next steps Database Project - References, SQLCommand Mode Source Control – Branching and Merging https://blogs.msdn.microsoft.com/ssdt/2012/02/02/including-data-in-a-sql-server-database-project/ https://www.mssqltips.com/sqlservertutorial/9004/insert-inital-seed-data-into-the-table-in-ssdt/ http://sqlblog.com/blogs/jamie_thomson/archive/2014/10/13/day-10-code-navigation-30-days-of-ssdt.aspx www.sqlchick.com/entries/2016/1/10/why-you-should-use-a-ssdt-database-project-for-your-data-warehouse https://msdn.microsoft.com/en-us/library/hh272686(v=VS.103).aspx REFACTORING - https://msdn.microsoft.com/en-us/library/hh272704(v=vs.103).aspx

Creating a db project: In Visual Studio, Create a new database project, file>new>project then templates>sql server>sql server database project Update the name, location, solution name as desired. You may or may not want to add to source control at this time, if you do select the box Importing an existing db to your newly created project: In Visual Studio go to Solution Explorer window. Right click on the database (project level, not solution level) and your first option in the menu is import

Thank You Sponsors Platinum Gold Silver Bronze Swag Venue

Contact Leslie Weed lweed@revgen.com Twitter = @weederbug