What is the best way to version control my SQL server stored procedures?

Vijesh VP picture Vijesh VP · Sep 28, 2008 · Viewed 30.2k times · Source

What is the best way to version control my database objects? I'm using Visual studio 2005/2008 and SQL server 2005. I would prefer a solution which can be used with SVN.

Answer

Ron Savage picture Ron Savage · Sep 28, 2008

Same as your other code, add a "Database project" to your application solution and keep the sql files used to build the database objects in there. Use the same version control for those code files as you do for the application.