Change TFS Database to other server

To change TFS Database to other server:

# Preview

Note: You can use the /preview at the end to display the actions that you must take to update the configuration. This just shows a preview of what is to be done.

# Stop IIS/TFS

iisreset /stop -> Stop IIS
net stop TfsJobAgent -> Stop TFS Job Agent

# Backup SQL Databases

# Restore SQL Databases

# Prepare SQL Server for Team Foundation Server - For Old versions

TFSConfig PrepSQL /SQLInstance: ServerName\InstanceName

# Remap DB to other server
 
TFSConfig RemapDBs /DatabaseName:ServerName\Instance;Tfs_Configuration /SQLInstances:ServerName\Instance

# Change the Ownership of the Restored Databases

TFSConfig Accounts /ResetOwner /SQLInstance:ServerName\Instance /DatabaseName:Database

# Register the Location of the Restored Databases if You Are Not Restoring the Application Tier

TfsConfig registerDB /SQLInstance:ServerName\Instance /DatabaseName:Database

# Start IIS

iisreset /start -> Start IIS

Comentários

Postagens mais visitadas deste blog

Cisco router password recovery