Use RegisterDB to update name of the server that hosts the configuration database in Visual Studio Team Foundation Server (TFS). You might use this command when restoring the configuration database to new hardware or when changing the domain of a deployment.
For the RegisterDB command to succeed, the following application pools and programs must be running:
Team Foundation Server Application Pool (application pool)
ReportServer (application pool)
SQL Server Reporting Services (program)
In addition, the following components must not be open or running:
To use the RegisterDB command, you must be a member of the Team Foundation Administrators group on the application-tier server for Team Foundation and a member of the sysadmin group in SQL Server on the data-tier server for Team Foundation. For more information, see Team Foundation Server Permissions.
Even if you are logged on with administrative credentials, you must open an elevated Command Prompt to perform this function.
Specifies the name of the server that hosts the configuration database for TFS and the name of the instance if you want to use an instance other than the default instance. If you specify an instance, you must use the following format:
Specifies the name of the configuration database that you want to register with TFS.
Required. Specifies the name of the server that is running SQL Server and the name of the instance if you want to use an instance other than the default instance. If you specify an instance, you must use the following format:
Required. Specifies the name of the configuration database. By default, this is Tfs_Configuration.
Optional. Specifies that the databases are part of an AlwaysOn Availability Group in SQL Server. If configured, this option sets MultiSubnetFailover in the connection string.
For more information, see AlwaysOn Availability Groups (SQL Server).
The following example redirects TFS to a configuration database that is located on the server ContosoMain in the SQL Server instance TeamDatabases.
The examples are for illustration only and are fictitious. No real association is intended or inferred.
TFSConfig RegisterDB /SQLInstance:ContosoMain\TeamDatabases /databaseName:Tfs_Configuration