Rename SQL Server not working

  • 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?

  • Did you physically rename the Windows server and reboot?

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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.

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Is there a way to create an alias for the server on the server side ?

  • 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