patternsqlMinor
Can a MS SQL Server be named different than host computer?
Viewed 0 times
cansqlthannameddifferenthostcomputerserver
Problem
I have a virtual machine that was built by our IT department to host various processes. They named the computer something incomprehensible like "XYSVC105" and I am not allowed to change it. I have also installed MS SQL Server 2014 on this machine and everything is working great.
However, I have been searching for MS best practices but cannot seem to find if you are able to change the name of the SQL Server to be different than the host computer or if it's recommended not to do it. I would like to change the SQL Server name to something like "OPSRES".
Most of the reasons for this are internal. One of them being that this will be used by a multitude of users and developers. From experience they will remember a simple name like OPSRES and not XYZ145PPQ.
However, I have been searching for MS best practices but cannot seem to find if you are able to change the name of the SQL Server to be different than the host computer or if it's recommended not to do it. I would like to change the SQL Server name to something like "OPSRES".
Most of the reasons for this are internal. One of them being that this will be used by a multitude of users and developers. From experience they will remember a simple name like OPSRES and not XYZ145PPQ.
Solution
I have been searching for MS best practices but cannot seem to find if you are able to change the name of the SQL Server to be different than the host computer or if it's recommended not to do it.
If you installed default instance then your sql server name will be hostname
If you installed named instance e.g. sql01 then your sql server name will be
Below are few ways that you can use to have your application connect to the name you wish e.g.
I would like to change the SQL Server name to something like "OPSRES".
You can create an alias and have your client applications use that in connection string.
Also, since you are using sql server 2014 - if you are using AlwaysOn Availablity group then you can just use listener (its a virtual network name (VNN) or Virutal IP (VIP)) and have your application use listener instead of host names.
You can even ask your DNS Admin to create Hostname Alias for a SQL Server Instance
If you installed default instance then your sql server name will be hostname
XYSVC105.If you installed named instance e.g. sql01 then your sql server name will be
XYSVC105\sql01.Below are few ways that you can use to have your application connect to the name you wish e.g.
OPSRES.I would like to change the SQL Server name to something like "OPSRES".
You can create an alias and have your client applications use that in connection string.
Also, since you are using sql server 2014 - if you are using AlwaysOn Availablity group then you can just use listener (its a virtual network name (VNN) or Virutal IP (VIP)) and have your application use listener instead of host names.
You can even ask your DNS Admin to create Hostname Alias for a SQL Server Instance
Context
StackExchange Database Administrators Q#209858, answer score: 5
Revisions (0)
No revisions yet.