Link a database to TFVC

dbForge Source Control is a Microsoft SQL Server Management Studio (SSMS) add-in designed to manage database changes in the best-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 Team Foundation Version Control (TFVC).

1. In Object Explorer, right-click a database you want to link to source control and select Source Control > Link database to Source Control to open the Link Database to Source Control wizard.

2. On the Link page of the wizard, click + in the Source control repository field.

3. In the Source Control Repository Properties dialog that opens, select Team Foundation Version Control (TFVC) as a source control system from the Source control system dropdown list and do the following:

  • Specify Server URL.
  • Choose Authentication type.
  • Depending on the selected Authentication type, specify:
    • Username and Password for Azure DevOps Server (formerly TFS) Base
    • Personal access Token for Azure DevOps Server (formerly TFS) Token
    • Windows login for Azure DevOps Server (formerly TFS) Windows
    • Username and Password for Azure DevOps (formerly VSTS) Base
    • Personal access Token for Azure DevOps (formerly VSTS) Token
    • For Azure DevOps (formerly VSTS) Web, click Clear web authentication cache, and then click in the Database folder field to enter Username and Password for your web account
  • Specify the Database folder. To do this, click Browse Browse to choose the folder where a SQL script will be stored.
  • Optional: The Repository name is automatically derived from the server URL. However, you can specify a different name of the repository.

Note

Contact your system administrator to get proper settings for the server URL, username, and password.

Note

If you are using TFS/Azure DevOps Server/ Azure DevOps Services with Git-based version control, you cannot use the Team Foundation Version Control (TFVC) mode to link. Use the Git mode instead.

For more information on creating a TFVC repository in Azure DevOps and linking it to source control, refer to Creating a TFVC Repository in Azure DevOps and Linking It to Source Control.

Link DB to TFS

4. Optional: Click Test to verify that the database can be successfully connected to source control.

5. Click OK to apply the changes and close the Source Control Repository Properties dialog.

6. Select a database development model: dedicated or shared.

7. Click Link to establish the connection between the database and source control.

Link DB to TFVC

The Refresh progress window opens automatically, showing the stages of the refresh operation. The linked database gets the following icon in Object Explorer.

Linked DB

Note

If linking a database to TFVC was unsuccessful, and you see the Can not find local client for TFS error, install Team Foundation Server Object Model:

After linking to TFS

If you’re the first person to link this database, add the database objects to source control in an ‘initial commit’. To do this, go to the Local changes section, select the objects and click Commit. For more details, see Commit changes.

If you linked a database that’s already in source control, update your database to the latest version. To do this, go to the Remote changes section, select the objects and click Get Latest. For more details, see Get the latest version.

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Source Control for SQL Server.
All Features

All features

Get acquainted with the rich features and capabilities of the Source Control in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Source Control for your business, request a demo to see it in action.
Ready to start using dbForge Source Control for SQL Server?