Source Control is a Microsoft SQL Server Management Studio (SSMS) add-in that is designed to manage database changes in most well-known version control systems. With the help of the tool, you can version-control database schemas and data, roll back unwanted changes, handle static data conflicts, and maintain the integrity of the database.
This topic explains how to link a database to a working folder.
A working folder contains SQL script files that represent your database. It allows you to script database changes to a database folder. After saving changes, the database working folder can be source-controlled with your version control system in the same way you version-control other files.
Point to Source Control, and then click Link database to source control… on the shortcut menu.
The Link Database To Source Control wizard opens.
On the Link tab of the wizard, click ‘+’ in the Source control repository field.
The Source Control Repository Properties dialog box opens.
Select Working Folder from the Source Control system drop-down list box.
Select a database development model. For more information, refer to the Database Development Models topic.
Click Link. If a database is linked to source control successfully, a database icon in Object Explorer will be changed to show that a database is linked.