December 17, 2013 at 9:16 am
I used Following Statement to rename the server
sp_dropserver 'PHLSQSLDR'
sp_addserver 'PHLSQSLTEST', local
Then i issued the command select @@servername
it gave me PHLSQSLTEST, so i thought the server is renamed.
I used SQL Server Management Studio to connect using server name 'PHLSQLSLTEST' but its not working.
I can still connect using PHLSQLSLDR
What am i missing?
December 17, 2013 at 9:29 am
Did you physically rename the Windows server and reboot?
December 17, 2013 at 9:33 am
renaming a server is a two part process;
one occurs at the operating system; the second is for convenience in SQl server.
You rename the server and then reboot.
AFTER that has occurred, then you rename the SQL server's name it has for itself, just as you described already.
then the two of them are syncronized.
Lowell
December 17, 2013 at 9:45 am
No I didn't rename the windows server.
I have couple of SQL Instances running on the server.
I have a one named instance running on this computer, which i want to change.
I don't want to change the server name.
-------------------------------------------------
If this is not the solution then i can create an alias for the server. This i want to do it on the server, i dont want to do any settings on the client computers.
Bottom Line :
-We want to shutdown the Live Server (SqlLive)
- On the Test Box : Rename the SQL Server Instance name to (SqlLive) OR Create an alias SqlLive
- Test the Applications using the Test Box.
December 17, 2013 at 9:55 am
you cannot rename an instance.
that means, for example, if you installed machinename\SQLEXPRESS, and you want to rename it to be machinename\SQL2008R2 that is not possible. you have to backup whatever was on the instance, remove the instance, and reinstall.
that can get pretty involved, depending on the instance...SSIS packages, linked servers, certificates, logins, mail settings, and a lot of other items might need to be migrated.
Lowell
December 17, 2013 at 10:48 am
Is there a way to create an alias for the server on the server side ?
December 17, 2013 at 11:17 am
You could have a DNS entry created with the new name, and the instance's IP address.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply