Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stored Procedures in Source Control System

I am using VS 2010. We use stored procedures for data access. What is the best way to keep the stored procedures in source control so we will know who changed the stored procedure and what got changed?

like image 842
john doe Avatar asked Nov 05 '22 01:11

john doe


1 Answers

The best way for someone using VS2010 would probably be the database project (available only in VS2010 Premium and Ultimate). This project can inspect an existing database and create individual files from individual database objects (tables, constraints, indices, sprocs, etc.). Then you can check the whole project into your source control, then you get all the benefits of source control applied to your database as you do with other code files you check into source control.

Red Gate also has a source control for database you might want to check out.

like image 54
Richard B Avatar answered Nov 09 '22 16:11

Richard B