A SQL Server alias is a tidy way to protect yourself from
configuration changes in a SharePoint farm. Anybody who works with
SharePoint on a regular basis knows that it is very difficult to move
SharePoint to a different SQL Server. When disaster strikes wouldn’t it
be nice if you could simply change SQL Server that SharePoint
references? To do so, install the SQL client access tools on each server
and create a SQL Alias in SQL Server Configuration Manager, from there
your SharePoint Server can be re-homed with little effort.
Note, there are two methods to create a SQL Server alias, one for machines that already have SQL Server client tools installed, and another for machines that have no SQL components at all. If your machine does not have any SL software installed and you’d like to creat an alias, follow the steps diagrammed below after running this in the server’s run dialog: cliconfg.exe.
![clip_image001[1] clip_image001[1]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_trRrv2OdK7TwruEjp-KEY8RuZmpUkjdLwgA50jeMBQUn9Q6l_ECMoZaqNRHXCYWHB6PiXHJ3RWE871DkD1VAQg7iPzv1OvCL8jNfvJGcmae-9MGeh8W1H6xphEadYRHrE6SzVuh-CoPkZROouxWh0p8a3Y3zqj=s0-d)
Enable TCP/IP
![clip_image002[1] clip_image002[1]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_u_2ZLAGorA2OnvmmtKvWjysdGhtJeXwfJc6bqYyTmuou3lX3TZUxxvzMJw38siderDJVY33viu49qW9GOZRlL8aVy13cao5AQOHMU2frs51qyrZBTEQH5bEwS30mpBEuKQOApPUqFgvWYoTv7pfppneIduKmDI=s0-d)
Add a new alias as follows
![clip_image003[1] clip_image003[1]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sZaJOocO_7rjkUzvdRXcILJf2k-ksXhYteppUl-mQ5UwQ0OmkHqBmqxapwWZU4yXDYLMRP7WdY8XS5-wo4Db__SVELFyHB9J3en28tvhozaAfdSDQdRH30gD0DZtm9cw06FkLRwqeWSiKIL7by616xTRCa7FI=s0-d)
Once your alias is entered, launch SharePoint Products and technologies wizard and build your SharePoint farm.
Verify on your SQL server that TCP/IP communication is allowed in the sql server configuration manager
![clip_image005[1] clip_image005[1]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sX33ErE4HkVOVBMPmBkej_jhXz-NGCcPKF-5RQcu-tm6l_22nHDAYJAjpvAom8WkhDWpm-tE8njwZUoZxFvN82oiIQP813dF7bjvGR-5B3x0E5u-qe-nWfK6whTpYd1xcbxVT9veNnSjB_jBEZqccnideE55O-=s0-d)

Enable TIP/IP if you haven’t done so already

Under the 32 bit Client 10.0 Configuration (32 Bit)
** yes, one would think you need to do it under the 64 bit but it looks like enterprise manager thunks down to 32 bit

Repeat the steps above for SQL Native Client 10.0 Configuration
** SharePoint uses the 64 Bit Native Client

Test your connection using enterprise manager

I
n the event of a SQL failure, or if you simply want to migrate to a different SQL Server, all you have to do is update the SQL Server Alias in each client machine to reference the new SQL Server. The example below shows how to connect using a named instance on a new server

Or just connect to another server’s default instance

Note, there are two methods to create a SQL Server alias, one for machines that already have SQL Server client tools installed, and another for machines that have no SQL components at all. If your machine does not have any SL software installed and you’d like to creat an alias, follow the steps diagrammed below after running this in the server’s run dialog: cliconfg.exe.
For a server with NO SQL Server Tools Installed
From the command line run cliconfg.exeEnable TCP/IP
Add a new alias as follows
Once your alias is entered, launch SharePoint Products and technologies wizard and build your SharePoint farm.
Verify on your SQL server that TCP/IP communication is allowed in the sql server configuration manager
For a server that has SQL Server Tools Installed
Open SQL Server Configuration ManagerEnable TIP/IP if you haven’t done so already
Under the 32 bit Client 10.0 Configuration (32 Bit)
** yes, one would think you need to do it under the 64 bit but it looks like enterprise manager thunks down to 32 bit
Repeat the steps above for SQL Native Client 10.0 Configuration
** SharePoint uses the 64 Bit Native Client
Test your connection using enterprise manager
I
n the event of a SQL failure, or if you simply want to migrate to a different SQL Server, all you have to do is update the SQL Server Alias in each client machine to reference the new SQL Server. The example below shows how to connect using a named instance on a new server
Or just connect to another server’s default instance
No comments:
Post a Comment