How to set up a SQL Alias for MS SQL Server 2008 R2 (for use with SharePoint 2010)
To setup a SQL Alias, go to c:\windows\system32\ and open Cliconfg.exe from each server including the MSSQL Server and add an alias. Here you define the OLDSERVER as an alias that redirects to the NEWSERVER. You will need to repeat this process using CliConfg.exe in the folder c:\windows\syswow64. This is repetitive, I know, but it's easier to do them both than to debug why one app sees the new server and the other is trying to hit the old one.
If you have the good fortune to set up a SharePoint Farm from scratch, you should start out using an alias. It's good "SQL Hardening" practice, and allows you to easier switch to a new MS SQL Server. Convention says to start with "A-" to indicate that it's an alias, but why be conventional - few people catch on to that convention anyway.
Last note: be sure Named Pipes is enabled. Open the SQL Server Configuration Manager, unfold the node SQL Server Network Configuration and select Protocols for MSSQLServer (or whatever the name of your SQL Server instance is).
Make sure that TCP/IP and Named Pipes are both enabled.
If you have the good fortune to set up a SharePoint Farm from scratch, you should start out using an alias. It's good "SQL Hardening" practice, and allows you to easier switch to a new MS SQL Server. Convention says to start with "A-" to indicate that it's an alias, but why be conventional - few people catch on to that convention anyway.
Last note: be sure Named Pipes is enabled. Open the SQL Server Configuration Manager, unfold the node SQL Server Network Configuration and select Protocols for MSSQLServer (or whatever the name of your SQL Server instance is).
Make sure that TCP/IP and Named Pipes are both enabled.
Comments
Post a Comment