Friday, December 28, 2018

Creating Alias for SQL server

To Create an alias for SQL instance

Open SQL Server Configuration Manager

Go to both SQL Native Client branch on 32 and 64 bit. Please see screenshot below.
Right click on the right side of the window pane.






Alias Name : any name
Port No : 1433 (SQL default Port no)
Protocol :  TCP/IP
Server :  Fully qualified local server name(ex. server.domain.us.dom)



Next step is very important. We need to add the alias to DNS entry.

Please add the following SQL server alias to DNS entry alias/CName.
Alias Name : Newalias
Fully Qualified domain Name(FQDN)for target host : server.domain.us.dom


After adding it to DNS entry, we will be able to connect to Alias using SSMS from our desktop or application.





No comments:

Post a Comment

How to add a Database to AlwaysOn Availability Group with four different options

To add a database to an existing AlwaysOn availability group, MS has given us four options to choose from Automatic seeding Full database an...