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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With