Changing SharePoint Database Server Name - the HARD/WRONG way
Here is the typical process to change the database Server that SharePoint is using:
- Move or attach all the sharepoint databases to the new server.
- Change the location of the config database with
stsadm.exe -o setconfigdb -databaseserver ServerName -farmuser MyUserName – farmpassword MyPassword - Delete the Central Administration Site in IIS
- Re-run the the SharePoint Products and Technologies Configuration Wizard.
- DONE
The above process is a bit painful - and I never like deleting a core component of SharePoint like Central Admin.
To greatly simplify migraton if you should need to change the port or the server name of your SharePoint database server, you should instead use SQL Server Aliases for your connection from SharePoint to SQL. To do this, go to a command prompt on all servers (as they all connect to the database) and enter the following to open the SQL Client Configuration Tool (note that it doesn't have an i between the n and the f):
cliconfg
Once this is open, you can add a TCP/IP alias as neccessary, which points to your physical Server name, port or instance. Use this alias name when entering the database server in SharePoint - and you wont' look back! The server name change process is then as follows:
- Move or attach all the sharepoint databases to the new server.
- Change the Alias
- DONE!
DDK
1 comment:
This is Perfect. It works.
Post a Comment