Alex Rivera | Logout

SQL Server Database Management with Continuous Integration

Asked 2009-01-01T17:26:44.193
13

Let's say we have a continuous integration server. When I check in, the post-hook pulls the latest code, runs the tests, packages everything. What is the best way to also automate the database changes?

Ideally, I'd build an installer that could either build a database from scratch or update an existing one using some automated syncing method.

Edit
Report

2 Answers

2

If you have the opportunity to define and control the whole database management and db creation process, have a serious look at DB Ghost - it's more than just a tool - it's a process.

If you like it and can implement it, you'll get great returns on it - but it's a bit of a "all-or-nothing" kind of approach. Recommended.

answered 2009-01-01T17:31:32.890
1

The Red Gate approach using SQL Source Control and the SQL Compare Pro command line is detailed with code samples here: http://downloads.red-gate.com/HelpPDF/ContinuousIntegrationForDatabasesUsingRedGateSQLTools.pdf

Troy Hunt wrote an article on Simple Talk entitled "Continuous Integration for SQL Server Databases": http://www.simple-talk.com/content/article.aspx?article=1247

answered 2010-12-11T18:08:16.510

Your Answer