Changing/Setting a Connection to the Source Control Database

See Also

In the course of working with source control, you might at some time lose your connection to your source control server, or lose a connection to your source control project on the server due to a branching source control action.

When you are working offline, you are not connected to the source control database/server. This can be intentional (as when you are working remotely on a laptop) or accidental (as when a network connection breaks).

You may need to reestablish a connection with your source control project if a project is moved in the source control database. In this case, you must redirect the development environment to the new location, so that the development environment can update the status of files in those projects or the solution.

To reconnect to the source control server through the development environment

  1. On the Project menu, point to Source Control, and then click Change/Set Connection.

  2. In the Change/Set Connection dialog box, click Work Online, and then click Connection.

    The source control program displays a dialog box that connects you to a source control server or project. Find your project and click OK.

When you branch a project in Visual SourceSafe, you need to redirect the development environment to point to the new location of the project in the source control database.

Warning   You can usually safely use the Share command in Visual SourceSafe to share files. However, solution and project files (.sln, .vjp, etc.) should never be shared, but always branched.

To reconnect to a source control project through the development environment after a branching operation

  1. In the Project Explorer, select the project.

  2. If you wish to reconnect the whole of the solution to a single place where it was previously connected, select any item, and then select the Apply changes to other projects with similar connections check box.

  3. On the Project menu, point to Source Control, and then click Set Connection.

  4. In the Set Connection dialog box, click Work Online, and then click Connection.

    The source control program displays a dialog box that connects you to a source control server or, if you are still connected with your source control server, the projects in source control.

  5. In the dialog box provided by your source control program, choose the source control project. If you have branched all projects at once, you may wish to select the Apply changes to other projects with similar connections check box.

  6. Click OK.