This topic explains how to link a database to Perforce (P4).
Point to Source Control Tasks, 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 Studio 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 Studio 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 Studio, 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 Database Explorer will be changed to show that a database is linked.