SlideShare a Scribd company logo
Click here to _START_
about.me

‱ Lead Game Designer/Dev - QONQR
‱ Independent Consultant – MS Stack
‱ Leadership Team – Twin Cities Code Camp
‱ Co-Leader – Twin Cities .Net User Group
‱ Level 80 Draenei Enhancement Shaman (retired)


‱ (@apickett != Accountant || Lawyer || Fortune Teller || Diamond Level
  Starcraft II)
I can haz Shared Dev DB?
Local Dev DBs = happy devs :D

Until Integration timez
What we’ll cover
‱ SQL under Source Control
                                                          20% effort
 ‱       Check in Schema, Ref Data, Migration Scripts   BIG REWARD!
 ‱       Revision History
 ‱       Merge Conflicts




‱ Database Continuous Integration & Deploy                80% effort
 ‱       Automated Builds                                MEGA REALLY
 ‱       Automated Database Deploy                      HUGE REWARD!
     ‱     from Source Control to target environment
K. Scott Allen – Three Rules for DB work
‱ 1. Never use a shared database server for development work.
‱ 2. Always Have a Single, Authoritative Source For Your Schema
‱ 3. Always Version Your Database




http://odetocode.com/blogs/scott/archive/2008/01/30/three-rules-for-
database-work.aspx
Benefits of DB Source Control

‱ Same as putting ur codez in SC!
 ‱ Freedom to refactor (safely with rollbacks)
 ‱ Rapid iteration & integration
 ‱ Check in logs & history
  ‱ Schema Compare
  ‱ Data Compare
 ‱ Automated builds and integration tests (correctness)

 ‱ Via Coding Horror: Is Your Database Under Version Control?
 http://www.codinghorror.com/blog/2006/12/is-your-database-under-version-
 control.html
Build vs Buy
As devs we’re wizards capable of magicing up anything.
Friendly adivce: Avoid that temptation (unless it’s your core business)
- Team of 8. œ a Dev year to maintain and extend custom rolled solution
Microsoft 1st party
Microsoft 1st party
‱ VS Database projects
 ‱       VS 2010
     ‱       Database Project (.dbproj)
     ‱       Server Project
     ‱       Data-tier Application (DAC)
         ‱     http://msdn.microsoft.com/en-us/library/ee240739(SQL.105).aspx
 ‱       VS2011 = .sqlproj
     ‱       Moving to Sql Server Developer tools (SSDT) code named "Juneau".
     ‱       http://msdn.microsoft.com/en-us/magazine/hh394146.aspx

‱ VS Schema compare
 ‱       Requires Visual Studio Premium or Ultimate
 ‱       Command Line VSDBCMD.EXE
Microsoft 1st party
‱ Dacpac
 ‱   Serializes DB schema to XML (?)
 ‱   Versionable, but tricky to do diffs (?)
 ‱   Targeted at managing handoff of schema between Dev and Prod
 ‱   Think similar to how IT systems hands off VMs
 ‱   http://www.slideshare.net/andrewmatthewthompson/sql-aure-and-datatier-
     applications-dacpac

‱ Bacpac
 ‱   Extends Dacpac to include Table Data
Off the shelf
Red Gate SQL Compare rom $295.

DB Ghost from $195, recommended by Mike Hadlow here

SQL Change Manager $995 per instance.

SQL Effects Clarity standard ed. from $139; community ed. free.

SQLSourceSafe from $129.

sqlXpress Diff contact for price. :-(

Embarcadero Change Manager contact for price. :-(

Apex SQL Diff from $399

SQL Source Control 2003 from $199

SASSI v2.0 professional from $180 (looks free on their site, but apparently isn't)

Evorex Source # shareware or $299+ (conflicting reports!)

DB maestro

                                                                    Via http://secretgeek.net/dbcontrol.asp (2006!)
Enter Redgate SQL Source Control
Redgate
‱ Sql Source Control (~$250 per seat)
                                         20% effort
                                         AND cost!




‱ Sql Toolbelt (~$1500 per seat)          80% effort
 ‱   Sql Compare                           and cost
 ‱   Sql Data Compare                   (but worth it!)
 ‱   Sql Data Generator
 ‱   Sql Azure Backup (free)
DEMO!
Conflicts
Continuous Integration
‱ Build Scripting
 ‱   MSBuild
 ‱   Nant
 ‱   Powershell

‱ CI build servers
 ‱   Team City
 ‱   Cruise Control
 ‱   Jenkins (formerly Hudson)
 ‱   Team Foundation Server
Continuous Deployment (Web)
Web Projects
‱       MS Web Deploy
    ‱    Windows Server (Web Management Service - WMSVC)
    ‱    Windows 7/Vista/XP (MsDepSvc)
    ‱    Different on IIS 6 vs 7
Continuous Deployment (Data)
Team City -> Auto Deploy Data
Build step 1) Deploy schema

C:Program Files (x86)Red GateSQL Compare 9SQLCompare.exe

/scr1:%teamcity.build.checkoutDir%/Data /server2:(local) /db2:tccc12_prod /Sync
/Include:identical /Report:Report/SchemaDiffReport.html /ReportType:Interactive
/ScriptFile:Report/SchemaSyncScript.sql /Force /Verbose

-------------------

Build step 2)

Deploy Reference Data

C:Program Files (x86)Red GateSQL Data Compare 9SQLDataCompare.exe

/scr1:%teamcity.build.checkoutDir%/Data /server2:(local) /db2:tccc12_prod /Sync
/Include:table:Country /Include:identical /ScriptFile:Report/DataSyncScript.sql /Force /Verbose
Team City - Version Control settings
Mother of all builds vs Linked Build
Take aways
Job 1: Get your Sql under Source Control!


Job 2: Get Sql into your CI builds!


Job 3: Test your Data continuously!


Job 4: Deploy continually!


Job 5: Profit!
Resources
Online
‱ K Scott Allen: Three Rules for Database Work:
 ‱   http://odetocode.com/blogs/scott/archive/2008/01/30/three-rules-for-database-
     work.aspx
‱ Coding Horror: Is Your Database Under Version Control?
 ‱   http://www.codinghorror.com/blog/2006/12/is-your-database-under-version-
     control.html
‱ Troy Hunt – Rocking your SQL Source Control world with Red Gate
 ‱   http://www.troyhunt.com/2010/07/rocking-your-sql-source-control-world.html
 ‱   http://www.troyhunt.com/2011/02/automated-database-releases-with.html


Vendors
‱ Microsoft
‱ Redgate

More Related Content

What's hot (20)

PPTX
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
PDF
Exploring T-SQL Anti-Patterns
Antonios Chatzipavlis
 
PPTX
02 integrate highchart
Erhwen Kuo
 
PPTX
Bi and AI updates in the Microsoft Data Platform stack
Ivan Donev
 
PPTX
Troubleshooting common scenarios with Always On - A Dress Rehearsal
Amit Banerjee
 
PPTX
Discovery Day 2019 Sofia - Big data clusters
Ivan Donev
 
PPTX
Javascript on Server-Side
ASIMYILDIZ
 
PPTX
Blockchain for the DBA and Data Professional
Karen Lopez
 
PDF
Moving to the cloud; PaaS, IaaS or Managed Instance
Thomas Sykes
 
PPTX
Odessa .net-user-group-sql-server-2019-hidden-gems by Denis Reznik
Alex Tumanoff
 
PPTX
Migrate SQL Server 2008 R2 to Azure Cloud
Ravi Yadav
 
PPTX
Discovery Day 2019 Sofia - What is new in SQL Server 2019
Ivan Donev
 
PPTX
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
IDERA Software
 
PPTX
Let's Talk About: Database Migration Service
Pedro Sousa
 
PPTX
Sql server hybrid what every sql professional should know
Bob Ward
 
PDF
Help, I need to migrate my On Premise Database to Azure, which Database Tier ...
Erwin de Kreuk
 
PDF
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Trivadis
 
PPTX
Upgrade your SQL Server like a Ninja
Amit Banerjee
 
PPTX
Tips & Tricks SQL in the City Seattle 2014
Ike Ellis
 
PPTX
Azure sql introduction
ManishK55
 
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
Exploring T-SQL Anti-Patterns
Antonios Chatzipavlis
 
02 integrate highchart
Erhwen Kuo
 
Bi and AI updates in the Microsoft Data Platform stack
Ivan Donev
 
Troubleshooting common scenarios with Always On - A Dress Rehearsal
Amit Banerjee
 
Discovery Day 2019 Sofia - Big data clusters
Ivan Donev
 
Javascript on Server-Side
ASIMYILDIZ
 
Blockchain for the DBA and Data Professional
Karen Lopez
 
Moving to the cloud; PaaS, IaaS or Managed Instance
Thomas Sykes
 
Odessa .net-user-group-sql-server-2019-hidden-gems by Denis Reznik
Alex Tumanoff
 
Migrate SQL Server 2008 R2 to Azure Cloud
Ravi Yadav
 
Discovery Day 2019 Sofia - What is new in SQL Server 2019
Ivan Donev
 
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
IDERA Software
 
Let's Talk About: Database Migration Service
Pedro Sousa
 
Sql server hybrid what every sql professional should know
Bob Ward
 
Help, I need to migrate my On Premise Database to Azure, which Database Tier ...
Erwin de Kreuk
 
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Trivadis
 
Upgrade your SQL Server like a Ninja
Amit Banerjee
 
Tips & Tricks SQL in the City Seattle 2014
Ike Ellis
 
Azure sql introduction
ManishK55
 

Viewers also liked (18)

PPT
Miscellaneous legal terms domestic and foregin copy
bearister2746
 
PDF
Afghanistan telecompolicy english
mjaihu
 
PPTX
第捁äșŒç”„ æ„ŸæžŹèŁçœź
chobits505
 
PPTX
Scarlet hope rev lb2 no video embed
JoyBKY
 
PPTX
9935019
chobits505
 
PPTX
9935019
chobits505
 
DOC
APARATO GENITAL MASCULINO
Omar Calzada
 
PDF
Connect & Create
Connect & Create
 
PPTX
Simple ams slidedeck
Bengmancastro
 
PPTX
Foreign investment
bearister2746
 
PDF
The journey to ICS - Extended
Larry Vandenaweele
 
PPT
BIOFISICA 1
Omar Calzada
 
PPT
International law of sales (1)
bearister2746
 
PDF
Psihologia varstelor copilaria
Iuliana Palade
 
PDF
Ion ways slide presentation
Gavin Dickinson
 
PPT
BIOFISICA 1
Omar Calzada
 
PPT
Basics of international business law
bearister2746
 
PDF
Molcular Hydrogen E Book
Gavin Dickinson
 
Miscellaneous legal terms domestic and foregin copy
bearister2746
 
Afghanistan telecompolicy english
mjaihu
 
第捁äșŒç”„ æ„ŸæžŹèŁçœź
chobits505
 
Scarlet hope rev lb2 no video embed
JoyBKY
 
9935019
chobits505
 
9935019
chobits505
 
APARATO GENITAL MASCULINO
Omar Calzada
 
Connect & Create
Connect & Create
 
Simple ams slidedeck
Bengmancastro
 
Foreign investment
bearister2746
 
The journey to ICS - Extended
Larry Vandenaweele
 
BIOFISICA 1
Omar Calzada
 
International law of sales (1)
bearister2746
 
Psihologia varstelor copilaria
Iuliana Palade
 
Ion ways slide presentation
Gavin Dickinson
 
BIOFISICA 1
Omar Calzada
 
Basics of international business law
bearister2746
 
Molcular Hydrogen E Book
Gavin Dickinson
 
Ad

Similar to Sql source control (20)

PPTX
#DOAW16 - DevOps@work Roma 2016 - Databases under source control
Alessandro Alpi
 
PDF
Microsoft SQL Server Continuous Integration
Mark Ginnebaugh
 
PDF
Database CI Demo Using Sql Server
Umesh Kumar
 
PPTX
Database CI/CD Pipeline
muhammadhashir57
 
PDF
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
Tobias Koprowski
 
PPTX
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Microsoft TechNet - Belgium and Luxembourg
 
PPTX
Bringing DevOps to the Database
Michaela Murray
 
PDF
Database Build and Release - SQL In The City - Ernest Hwang
Red Gate Software
 
PPTX
DevOps+Data: Working with Source Control
Ed Leighton-Dick
 
PPTX
Extending DevOps practices to SQL Server databases - story tracking - 20th ju...
Red Gate Software
 
PPTX
Getting CI right for SQL Server
Alex Yates
 
PPTX
SQL in Version Control using SQL Server Database Projects
floydhilton
 
PPTX
Declarative Database Development with SQL Server Data Tools
Gert Drapers
 
PPTX
Redgate Database Devops Demo webinar - Visual Studio Team Services - 21st Fe...
KateDuggan2
 
PPTX
Extending DevOps practices to SQL Server databases - branching & merging with...
Red Gate Software
 
PPTX
Redgate database DevOps demo webinar (with Git & Jenkins)
Red Gate Software
 
PPTX
[ENG] Sql Saturday 355 in Parma - New "SQL Server databases under source cont...
Alessandro Alpi
 
PDF
The databases in SSDT: A work with project and best practices
Kamil Nowinski
 
PPTX
SSDT Workshop @ SQL Bits X (2012-03-29)
Gert Drapers
 
PDF
Meetup developing building and_deploying databases with SSDT
Solidify
 
#DOAW16 - DevOps@work Roma 2016 - Databases under source control
Alessandro Alpi
 
Microsoft SQL Server Continuous Integration
Mark Ginnebaugh
 
Database CI Demo Using Sql Server
Umesh Kumar
 
Database CI/CD Pipeline
muhammadhashir57
 
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
Tobias Koprowski
 
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Microsoft TechNet - Belgium and Luxembourg
 
Bringing DevOps to the Database
Michaela Murray
 
Database Build and Release - SQL In The City - Ernest Hwang
Red Gate Software
 
DevOps+Data: Working with Source Control
Ed Leighton-Dick
 
Extending DevOps practices to SQL Server databases - story tracking - 20th ju...
Red Gate Software
 
Getting CI right for SQL Server
Alex Yates
 
SQL in Version Control using SQL Server Database Projects
floydhilton
 
Declarative Database Development with SQL Server Data Tools
Gert Drapers
 
Redgate Database Devops Demo webinar - Visual Studio Team Services - 21st Fe...
KateDuggan2
 
Extending DevOps practices to SQL Server databases - branching & merging with...
Red Gate Software
 
Redgate database DevOps demo webinar (with Git & Jenkins)
Red Gate Software
 
[ENG] Sql Saturday 355 in Parma - New "SQL Server databases under source cont...
Alessandro Alpi
 
The databases in SSDT: A work with project and best practices
Kamil Nowinski
 
SSDT Workshop @ SQL Bits X (2012-03-29)
Gert Drapers
 
Meetup developing building and_deploying databases with SSDT
Solidify
 
Ad

Recently uploaded (20)

PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 

Sql source control

  • 1. Click here to _START_
  • 2. about.me ‱ Lead Game Designer/Dev - QONQR ‱ Independent Consultant – MS Stack ‱ Leadership Team – Twin Cities Code Camp ‱ Co-Leader – Twin Cities .Net User Group ‱ Level 80 Draenei Enhancement Shaman (retired) ‱ (@apickett != Accountant || Lawyer || Fortune Teller || Diamond Level Starcraft II)
  • 3. I can haz Shared Dev DB?
  • 4. Local Dev DBs = happy devs :D
  • 6. What we’ll cover ‱ SQL under Source Control 20% effort ‱ Check in Schema, Ref Data, Migration Scripts BIG REWARD! ‱ Revision History ‱ Merge Conflicts ‱ Database Continuous Integration & Deploy 80% effort ‱ Automated Builds MEGA REALLY ‱ Automated Database Deploy HUGE REWARD! ‱ from Source Control to target environment
  • 7. K. Scott Allen – Three Rules for DB work ‱ 1. Never use a shared database server for development work. ‱ 2. Always Have a Single, Authoritative Source For Your Schema ‱ 3. Always Version Your Database http://odetocode.com/blogs/scott/archive/2008/01/30/three-rules-for- database-work.aspx
  • 8. Benefits of DB Source Control ‱ Same as putting ur codez in SC! ‱ Freedom to refactor (safely with rollbacks) ‱ Rapid iteration & integration ‱ Check in logs & history ‱ Schema Compare ‱ Data Compare ‱ Automated builds and integration tests (correctness) ‱ Via Coding Horror: Is Your Database Under Version Control? http://www.codinghorror.com/blog/2006/12/is-your-database-under-version- control.html
  • 9. Build vs Buy As devs we’re wizards capable of magicing up anything. Friendly adivce: Avoid that temptation (unless it’s your core business) - Team of 8. œ a Dev year to maintain and extend custom rolled solution
  • 11. Microsoft 1st party ‱ VS Database projects ‱ VS 2010 ‱ Database Project (.dbproj) ‱ Server Project ‱ Data-tier Application (DAC) ‱ http://msdn.microsoft.com/en-us/library/ee240739(SQL.105).aspx ‱ VS2011 = .sqlproj ‱ Moving to Sql Server Developer tools (SSDT) code named "Juneau". ‱ http://msdn.microsoft.com/en-us/magazine/hh394146.aspx ‱ VS Schema compare ‱ Requires Visual Studio Premium or Ultimate ‱ Command Line VSDBCMD.EXE
  • 12. Microsoft 1st party ‱ Dacpac ‱ Serializes DB schema to XML (?) ‱ Versionable, but tricky to do diffs (?) ‱ Targeted at managing handoff of schema between Dev and Prod ‱ Think similar to how IT systems hands off VMs ‱ http://www.slideshare.net/andrewmatthewthompson/sql-aure-and-datatier- applications-dacpac ‱ Bacpac ‱ Extends Dacpac to include Table Data
  • 13. Off the shelf Red Gate SQL Compare rom $295. DB Ghost from $195, recommended by Mike Hadlow here SQL Change Manager $995 per instance. SQL Effects Clarity standard ed. from $139; community ed. free. SQLSourceSafe from $129. sqlXpress Diff contact for price. :-( Embarcadero Change Manager contact for price. :-( Apex SQL Diff from $399 SQL Source Control 2003 from $199 SASSI v2.0 professional from $180 (looks free on their site, but apparently isn't) Evorex Source # shareware or $299+ (conflicting reports!) DB maestro Via http://secretgeek.net/dbcontrol.asp (2006!)
  • 14. Enter Redgate SQL Source Control
  • 15. Redgate ‱ Sql Source Control (~$250 per seat) 20% effort AND cost! ‱ Sql Toolbelt (~$1500 per seat) 80% effort ‱ Sql Compare and cost ‱ Sql Data Compare (but worth it!) ‱ Sql Data Generator ‱ Sql Azure Backup (free)
  • 16. DEMO!
  • 18. Continuous Integration ‱ Build Scripting ‱ MSBuild ‱ Nant ‱ Powershell ‱ CI build servers ‱ Team City ‱ Cruise Control ‱ Jenkins (formerly Hudson) ‱ Team Foundation Server
  • 19. Continuous Deployment (Web) Web Projects ‱ MS Web Deploy ‱ Windows Server (Web Management Service - WMSVC) ‱ Windows 7/Vista/XP (MsDepSvc) ‱ Different on IIS 6 vs 7
  • 20. Continuous Deployment (Data) Team City -> Auto Deploy Data Build step 1) Deploy schema C:Program Files (x86)Red GateSQL Compare 9SQLCompare.exe /scr1:%teamcity.build.checkoutDir%/Data /server2:(local) /db2:tccc12_prod /Sync /Include:identical /Report:Report/SchemaDiffReport.html /ReportType:Interactive /ScriptFile:Report/SchemaSyncScript.sql /Force /Verbose ------------------- Build step 2) Deploy Reference Data C:Program Files (x86)Red GateSQL Data Compare 9SQLDataCompare.exe /scr1:%teamcity.build.checkoutDir%/Data /server2:(local) /db2:tccc12_prod /Sync /Include:table:Country /Include:identical /ScriptFile:Report/DataSyncScript.sql /Force /Verbose
  • 21. Team City - Version Control settings
  • 22. Mother of all builds vs Linked Build
  • 23. Take aways Job 1: Get your Sql under Source Control! Job 2: Get Sql into your CI builds! Job 3: Test your Data continuously! Job 4: Deploy continually! Job 5: Profit!
  • 24. Resources Online ‱ K Scott Allen: Three Rules for Database Work: ‱ http://odetocode.com/blogs/scott/archive/2008/01/30/three-rules-for-database- work.aspx ‱ Coding Horror: Is Your Database Under Version Control? ‱ http://www.codinghorror.com/blog/2006/12/is-your-database-under-version- control.html ‱ Troy Hunt – Rocking your SQL Source Control world with Red Gate ‱ http://www.troyhunt.com/2010/07/rocking-your-sql-source-control-world.html ‱ http://www.troyhunt.com/2011/02/automated-database-releases-with.html Vendors ‱ Microsoft ‱ Redgate