SlideShare a Scribd company logo
Automate Your
Database Deployments
Continuous delivery for databases
Grant Fritchey
Red Gate Software
Get in touch
scarydba.com
grant@scarydba.com
@gfritchey
Grant Fritchey
Get in touch
www.voiceofthedba.com
sjones@sqlservercentral.com
@way0utwest
Steve Jones
Development
Continuous
integration
Build Test
Publish Sync
ALTER
TABLE
foo…
Deployment
script
Release management
Artifact
repository
Production
Trigger
Review,
Backup
& deploy
Source
control
QA / Test / Pre-production
Continuous delivery for databases
Database release pipeline
Continuous
Integration
Development ProductionTesting
Operations
Database development
and change management
Development
Continuous
integration
Build Test
Publish Sync
ALTER
TABLE
foo…
Deployment
script
Release management
Artifact
repository
Production
Trigger
Review,
Backup
& deploy
Source
control
QA / Test / Pre-production
Continuous delivery for databases
In this presentation
Database release pipeline
Continuous
Integration
Development ProductionTesting
Goals
• Understand the patterns and practices for
automating database deployments.
• Learn about the advantages continuous
integration brings to a release pipeline.
• Understand the challenges databases present for
continuous delivery.
Continuous delivery – what it is and isn’t
Common misconception:
Continuous delivery = Continuous deployment
But in fact:
Continuous delivery means making sure your
database changes are always production-ready.
Recap: Continuous Delivery
Development Test Production
Release pipeline
Approval
gate
Four key stages of the deployment pipeline
SOURCE
CONTROL
CONTINUOUS
INTEGRATION
AUTOMATED
TESTING
AUTOMATED
DEPLOYMENT
Get your database under control
• Use version control for all code
(including tests)
• Commit early, commit often
• Use tools
o If it’s hard, people don’t do it
• Train people
• Build often
SOURCE
CONTROL
Continuous Integration
• Requires
• Code repository
• Build automation
• Delivers
• Functional testing
• Delivery testing
• Artifact generation
CONTINUOUS
INTEGRATION:
FUNDAMENTALS
Database Deployments in CI
• Complete deployment
• Fast
• Partial build validation
• Functional validation
• No artifact
• Incremental deployment
• Longer
• Harder
• Complete build validation
• Generates artifact
CONTINUOUS
INTEGRATION:
FUNDAMENTALS
Demo
Development
Continuous
integration
Build Test
Publish Sync
ALTER
TABLE
foo…
Deployment
script
Release management
Artifact
repository
Production
Trigger
Review,
Backup
& deploy
Source
control
QA / Test / Pre-production
Continuous delivery for databases
Focus here
Build out your release strategy
Continuous
Integration
Development ProductionTesting
Automation
Automation
Deployment
package
deployment package
1
2
3
Back to
Development
FAI
L
Development
Continuous
integration
Build Test
Publish Sync
ALTER
TABLE
foo…
Deployment
script
Release management
Artifact
repository
Production
Trigger
Review,
Backup
& deploy
Source
control
QA / Test / Pre-production
Continuous delivery for databases
Repository might be separate piece of software
or part of release management software
Continuous
Integration
Development ProductionTesting
Operations
Database development
and change management
Demo
Pre-production is a dry-run
• Staging matches production
• As close as possible
• Can use diff tool
• Or backup and restore AUTOMATED
DEPLOYMENT
Development
Continuous
integration
Build Test
Publish Sync
ALTER
TABLE
foo…
Deployment
script
Release management
Artifact
repository
Production
Trigger
Review,
Backup
& deploy
Source
control
QA / Test / Pre-production
Continuous delivery for databases
Continuous
Integration
Development ProductionTesting
Operations
Database development
and change management
Wait…
Check for database drift
• Last-minute hotfix
• Manual emergency fixes
• Unknown changes
AUTOMATED
DEPLOYMENT
Ready to go now?…
Plan for things to go wrong
…you need a rollback
and recovery strategy
AUTOMATED
DEPLOYMENT
Protection
• Backups
• Snapshots
• Rollback scripts
• A/B or blue/green deployments
• Roll forward scripts
AUTOMATED
DEPLOYMENT
Demo
Recap: Continuous Delivery
Development Test Production
Release pipeline
Approval
gate
Documentation and resources
• Continuous Delivery by Jez Humble and David Farley (Addison Wesley)
• The Phoenix Project: A Novel About IT, DevOps, and Helping Your Business Win by
Gene Kim, Kevin Behr and George Spafford (IT Revolution Press)
• The Goal: A Process of Ongoing Improvement by Eliyahu M. Goldratt and Jeff Cox
(Gower Publishing Ltd.)
• Agile Organization by the agile admin (theagileadmin.com)
Further resources:
• Database Delivery Learning program: www.red-gate.com/delivery
• Patterns and practices on Simple-Talk
• Tutorials in Red Gate training academy
• www.youtube.com/user/RedGateVideos - for recorded seminars
Want to try the tools you’ve just seen?
Come to our Hands-on Labs
Image sources
Author Source Information
William Warby Flickr Glass Man - Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license.
Perry McKenna Flickr Headless Horse – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license.
William Warby Flickr Gears – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license.
Ross Harmes Flickr Gear for lightweight snow camping – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license.
Val Gardena – Gröden
Marketing
Flickr
Fis Ski World Cup Val Gardena Gröden – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license
Paul Pehrson Flickr Ice cream sundae - Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license

More Related Content

What's hot (20)

PPTX
Why retail companies can't afford database downtime
DBmaestro - Database DevOps
 
PDF
Microsoft SQL Server Continuous Integration
Mark Ginnebaugh
 
PPTX
DBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed
DBmaestro - Database DevOps
 
PPTX
In (database) automation we trust
DBmaestro - Database DevOps
 
PDF
Continuous Delivery at Oracle Database Insights
Michael Medin
 
PPTX
TheTricky Bits of Deployment Automation
IBM UrbanCode Products
 
PPTX
The Challenges & Pitfalls of Database Continuous Delivery
Perforce
 
PPSX
Continuous Integration - Oracle Database Objects
Prabhu Ramasamy
 
PDF
Automated Database Deployment at SQL Rally
Grant Fritchey
 
PPTX
Building an automated database deployment pipeline
Red Gate Software
 
PPTX
The Role of Automation in the Journey to Continuous Delivery
XebiaLabs
 
PPTX
Introduction to DevOps
Dmitry Buzdin
 
PPT
Enterprise DevOps and the Cloud
CloudCheckr
 
PPTX
Adapting Deployment Pipelines for Complex Applications
IBM UrbanCode Products
 
PPTX
Security Implications for a DevOps Transformation
Deborah Schalm
 
PPTX
What is DevOps
Kyle Hailey
 
PPTX
DevOps is not a Culture. It is about responsibility
Yoav Avrahami
 
PDF
Distributed Release Management
Mike Brittain
 
PPTX
Database Deployment Pipeline - SQL In The City Workshop 2014
Red Gate Software
 
PPTX
The challenges and pitfalls of database deployment automation
DBmaestro - Database DevOps
 
Why retail companies can't afford database downtime
DBmaestro - Database DevOps
 
Microsoft SQL Server Continuous Integration
Mark Ginnebaugh
 
DBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed
DBmaestro - Database DevOps
 
In (database) automation we trust
DBmaestro - Database DevOps
 
Continuous Delivery at Oracle Database Insights
Michael Medin
 
TheTricky Bits of Deployment Automation
IBM UrbanCode Products
 
The Challenges & Pitfalls of Database Continuous Delivery
Perforce
 
Continuous Integration - Oracle Database Objects
Prabhu Ramasamy
 
Automated Database Deployment at SQL Rally
Grant Fritchey
 
Building an automated database deployment pipeline
Red Gate Software
 
The Role of Automation in the Journey to Continuous Delivery
XebiaLabs
 
Introduction to DevOps
Dmitry Buzdin
 
Enterprise DevOps and the Cloud
CloudCheckr
 
Adapting Deployment Pipelines for Complex Applications
IBM UrbanCode Products
 
Security Implications for a DevOps Transformation
Deborah Schalm
 
What is DevOps
Kyle Hailey
 
DevOps is not a Culture. It is about responsibility
Yoav Avrahami
 
Distributed Release Management
Mike Brittain
 
Database Deployment Pipeline - SQL In The City Workshop 2014
Red Gate Software
 
The challenges and pitfalls of database deployment automation
DBmaestro - Database DevOps
 

Similar to Automate Database Deployment - SQL In The City Workshop (20)

PPTX
Version Control meets Database Control
DBmaestro - Database DevOps
 
PPTX
Accelerate Develoment with VIrtual Data
Kyle Hailey
 
PPTX
Delphix and DBmaestro
Kyle Hailey
 
PPTX
Dev ops != Dev+Ops
Shalu Ahuja
 
PPTX
Continuous Database Delivery - 7/12/2018
David P. Moore
 
PPTX
manage databases like codebases
DBmaestro - Database DevOps
 
PDF
Den Bosch Java User Group April 2020 - Better software, faster - Principles o...
Bert Jan Schrijver
 
PDF
DevoxxUK 2019 - Better software, faster.
Bert Jan Schrijver
 
PPTX
Continuous Delivery in the Enterprise
IBM UrbanCode Products
 
PPTX
The Secret to Pain Free Database Deployments SQLBits 2014
Red Gate Software
 
PPTX
DevOps and the DBA- 24 Hours of Pass
Kellyn Pot'Vin-Gorman
 
PDF
[WSO2Con EU 2017] Continuous Integration, Delivery and Deployment: Accelerate...
WSO2
 
PDF
OpenValue Vienna meetup september 2020 - Better software, faster: Principles ...
Bert Jan Schrijver
 
PDF
All daydevops 2016 - Turning Human Capital into High Performance Organizati...
John Willis
 
PDF
Releasing To Production Every Week India
exortech
 
PDF
e-IT exec lunch - "It's all about data" - 25 May '16
Devin Deen
 
PDF
Devoxx Belgium 2019 - Better software, faster: Principles of Continuous Deliv...
Bert Jan Schrijver
 
PDF
CodeOne 2018 - Better software, faster: principles of Continuous Delivery and...
Bert Jan Schrijver
 
PPTX
What is DevOps?
Mesut Güneş
 
PPTX
Upgrading and Patching with Virtualization
Kellyn Pot'Vin-Gorman
 
Version Control meets Database Control
DBmaestro - Database DevOps
 
Accelerate Develoment with VIrtual Data
Kyle Hailey
 
Delphix and DBmaestro
Kyle Hailey
 
Dev ops != Dev+Ops
Shalu Ahuja
 
Continuous Database Delivery - 7/12/2018
David P. Moore
 
manage databases like codebases
DBmaestro - Database DevOps
 
Den Bosch Java User Group April 2020 - Better software, faster - Principles o...
Bert Jan Schrijver
 
DevoxxUK 2019 - Better software, faster.
Bert Jan Schrijver
 
Continuous Delivery in the Enterprise
IBM UrbanCode Products
 
The Secret to Pain Free Database Deployments SQLBits 2014
Red Gate Software
 
DevOps and the DBA- 24 Hours of Pass
Kellyn Pot'Vin-Gorman
 
[WSO2Con EU 2017] Continuous Integration, Delivery and Deployment: Accelerate...
WSO2
 
OpenValue Vienna meetup september 2020 - Better software, faster: Principles ...
Bert Jan Schrijver
 
All daydevops 2016 - Turning Human Capital into High Performance Organizati...
John Willis
 
Releasing To Production Every Week India
exortech
 
e-IT exec lunch - "It's all about data" - 25 May '16
Devin Deen
 
Devoxx Belgium 2019 - Better software, faster: Principles of Continuous Deliv...
Bert Jan Schrijver
 
CodeOne 2018 - Better software, faster: principles of Continuous Delivery and...
Bert Jan Schrijver
 
What is DevOps?
Mesut Güneş
 
Upgrading and Patching with Virtualization
Kellyn Pot'Vin-Gorman
 
Ad

More from Red Gate Software (20)

PDF
The future of DevOps: fully left-shifted deployments with version control and...
Red Gate Software
 
PDF
Embracing DevOps through database migrations with Flyway
Red Gate Software
 
PPTX
Database DevOps for Managed Service Providers
Red Gate Software
 
PDF
Mizuho Financial: Launching our Database DevOps journey
Red Gate Software
 
PDF
7 steps to effective SQL Server monitoring
Red Gate Software
 
PDF
Level up your deployments for SQL Source Control
Red Gate Software
 
PDF
Key findings from the 2020 state of database dev ops report
Red Gate Software
 
PPTX
Extend DevOps to Your SQL Server Databases
Red Gate Software
 
PDF
2019 year in review slides
Red Gate Software
 
PPTX
What we learned at PASS Summit in 2019
Red Gate Software
 
PPTX
Quality in Software Development: Anglia Ruskin University
Red Gate Software
 
PPTX
How SQL Change Automation helps you deliver value faster
Red Gate Software
 
PPTX
DevOps essentials from Abel Wang and Steve Jones
Red Gate Software
 
PPTX
Successfully migrating existing databases to Azure
Red Gate Software
 
PPTX
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
Red Gate Software
 
PDF
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Red Gate Software
 
PDF
Using Redgate, AKS and Azure to bring DevOps to your database
Red Gate Software
 
PDF
Using Redgate, AKS and Azure to bring DevOps to your Database
Red Gate Software
 
PDF
How to Pitch a Software Development Initiative and Ignite Culture Change
Red Gate Software
 
PDF
Taming the Wild West
Red Gate Software
 
The future of DevOps: fully left-shifted deployments with version control and...
Red Gate Software
 
Embracing DevOps through database migrations with Flyway
Red Gate Software
 
Database DevOps for Managed Service Providers
Red Gate Software
 
Mizuho Financial: Launching our Database DevOps journey
Red Gate Software
 
7 steps to effective SQL Server monitoring
Red Gate Software
 
Level up your deployments for SQL Source Control
Red Gate Software
 
Key findings from the 2020 state of database dev ops report
Red Gate Software
 
Extend DevOps to Your SQL Server Databases
Red Gate Software
 
2019 year in review slides
Red Gate Software
 
What we learned at PASS Summit in 2019
Red Gate Software
 
Quality in Software Development: Anglia Ruskin University
Red Gate Software
 
How SQL Change Automation helps you deliver value faster
Red Gate Software
 
DevOps essentials from Abel Wang and Steve Jones
Red Gate Software
 
Successfully migrating existing databases to Azure
Red Gate Software
 
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
Red Gate Software
 
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Red Gate Software
 
Using Redgate, AKS and Azure to bring DevOps to your database
Red Gate Software
 
Using Redgate, AKS and Azure to bring DevOps to your Database
Red Gate Software
 
How to Pitch a Software Development Initiative and Ignite Culture Change
Red Gate Software
 
Taming the Wild West
Red Gate Software
 
Ad

Recently uploaded (20)

PDF
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
PPTX
For my supp to finally picking supp that work
necas19388
 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 41
utfefguu
 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
 
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
 
PPTX
B2C EXTRANET | EXTRANET WEBSITE | EXTRANET INTEGRATION
philipnathen82
 
PDF
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
PPTX
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
PPTX
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
 
PPTX
ERP - FICO Presentation BY BSL BOKARO STEEL LIMITED.pptx
ravisranjan
 
PPTX
CONCEPT OF PROGRAMMING in language .pptx
tamim41
 
PPTX
Wondershare Filmora Crack 14.5.18 + Key Full Download [Latest 2025]
HyperPc soft
 
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
 
PDF
Rewards and Recognition (2).pdf
ethan Talor
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PDF
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
For my supp to finally picking supp that work
necas19388
 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
IDM Crack with Internet Download Manager 6.42 Build 41
utfefguu
 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
 
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
 
B2C EXTRANET | EXTRANET WEBSITE | EXTRANET INTEGRATION
philipnathen82
 
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
 
ERP - FICO Presentation BY BSL BOKARO STEEL LIMITED.pptx
ravisranjan
 
CONCEPT OF PROGRAMMING in language .pptx
tamim41
 
Wondershare Filmora Crack 14.5.18 + Key Full Download [Latest 2025]
HyperPc soft
 
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
 
Rewards and Recognition (2).pdf
ethan Talor
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 

Automate Database Deployment - SQL In The City Workshop

Editor's Notes

  • #2: Grant will be modifying the talk w/c 1st September to shorten and refocus 50:50 ratio of content on CI and release management Make it clearer that CI is the natural next step on from version control Go into more detail on CI as a process Cut out demo on version control as an entity Reduce rollback and recovery slides to one slide
  • #7: We’ll also demo a database change from the point of version control all the way through to release to production, so you can see it in practice.
  • #8: Animated slide shows that people often think continuous deployment is the same as continuous delivery – but this isn’t the case. This is an important distinction for database professionals. Continuous delivery and continuous deployment are very different beasts. Continuous delivery is about always being ready, at any point in time, to release your software. Continuous deployment, on the other hand, is about having such confidence in your automated testing and deployment procedures, that you automatically release a change straight from development into production (via other test servers of course!) without human intervention.
  • #9: See where continuous delivery fits in on the continuum of a release pipeline – and continuous processes. Important to emphasise the quality check at the approval gate stage for continuous delivery – this is a chance for DBAs to review scripts before they enter the production environment.
  • #11: From a technology standpoint, before you think about continuous delivery, you need to get your database under control. This is a quick recap of the version control and CI talk in the series – essentially, version control and continuously integrating and reporting back on builds needs to be in place.
  • #12: Show that it exists in source control. Show the folder so that they can see the create scripts, it’s not a series of changes scripts.
  • #15: Detailed CI demo. Use TeamCity. Emphasize the generation of the artifact, nuget package.
  • #21: Introduce octopus. Using artifact. Primarily test and talk about artifact. Works in TFS too through a pretty gui.
  • #22: Staging should be as close as possible an environment to Production – here are some characteristics to think about. Idea is that you can use Staging/pre-Production to debug and diagnose any issues before a release enters the (locked down) Production environment.
  • #24: Hold on – you also need to check Production is still in the same state as you expect – what if the database has ‘drifted’ – especially the schema - since you last looked?
  • #25: Need to be aware of unexpected changes being made to Production – or risk deployment failing, or data loss.
  • #26: Ok, so we’ve determined there’s been no drift. Are we ready to go? Not quite yet…
  • #27: Even after all the testing, the review, the checks, we should still obviously plan for things to go wrong. Build out a rollback and recovery strategy – there are several options to consider.
  • #28: Very basic first step is to have a backup of your Production environment. You probably have these already running regularly!
  • #29: Pre-prod and the generation of a t-sql script. Also mention drift resistance there.
  • #30: See where continuous delivery fits in on the continuum of a release pipeline – and continuous processes. Important to emphasise the quality check at the approval gate stage for continuous delivery – this is a chance for DBAs to review scripts before they enter the production environment.