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. Source Control can help you link your database to Perforce, which is an enterprise version management system that handles shared file repositories, or depots. This version control system is especially fitting for large development teams and teams working on complex projects.
This topic explains how to link a database to Perforce (P4).
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 Perforce (P4) from the Source Control system drop-down list box.
In Source control settings, specify:
5.1. P4Port, Username and Password for the Perforce server.
5.2. Workspace. You can create a new workspace or select an existing one from the drop-down list box.
>It is important to ensure that the Source Control feature of dbForge Source Control uses its own workspace for each database link.
It is not recommended to use this workspace from other applications.
To create a new workspace:
dbForge Source Control will work with scripts from this folder only. If you leave the Folder field empty, it will be considered that the whole depot contains database scripts. In this case, database scripts will be located in one of the Devart folders.
To select an existing workspace:
- Usage of existing workspace is not recommended due to possible conflicts with other applications or links.
- For the correct work of the Source Control feature of dbForge Source Control, you and your colleagues must use identical settings for P4Port, Depot and Folder when configuring a new Workspace.
- To get proper settings for** P4Port, **Username, Password and Depot, contact your system administrator.
5.3. Repository name.
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.