Getting Started with Web applications development with servlets and JSP - Part 5: Filters
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.


Upload Image Close it
Select File

Learned something today? Share it, or learn from what others have learned today

Change SQL Server instance name - SQL Server

Oct 25 2011 4:33AM by Paresh Prajapati   

During working with replication, encountered with one error to use actual server name for replication. For solution we need to change the SQL Server instance name as actual server name with following,

EXEC sp_dropserver 'Old Server Name'
EXEC sp_addserver 'New Server Name','local'
GO

Then restart the SQL service and confirm the new server name with @@SERVERNAME.

Read More..  [0 clicks]


Paresh Prajapati
7 · 24% · 5511
14
 
2
 
12
 
0
Incorrect
 
0
Interesting
 
0
Forgotten
 
0
Move



Submit

4  Comments  

  • I would change the first statement to:

    sp_dropserver 'old_name', droplogins
    GO
    
    commented on Oct 25 2011 6:20AM  .  Report Abuse This post is not formatted correctly
    Nakul Vachhrajani
    6 · 26% · 5926
  • Yes Nakul,

    Login account should be dropped also. Thanks.

    commented on Oct 25 2011 6:52AM  .  Report Abuse This post is not formatted correctly
    Paresh Prajapati
    7 · 24% · 5511
  • When I tried:

    EXEC sp_dropserver 'Old Server Name'

    Received the following error:

    The server 'Old Server Name' does not exist.

    commented on Oct 25 2011 9:11AM  .  Report Abuse This post is not formatted correctly
    Cris
    167 · 1% · 219
  • if your renaming the default sql server instance you must also rename the machine (computer name) otherwise sql server will fail to connect to the new instance name

    commented on Oct 26 2011 2:56AM  .  Report Abuse This post is not formatted correctly
    MAKAROV
    679 · 0% · 25

Your Comment


Sign Up or Login to post a comment.

"Change SQL Server instance name - SQL Server" rated 5 out of 5 by 14 readers
Change SQL Server instance name - SQL Server , 5.0 out of 5 based on 14 ratings
    Copyright © Beyondrelational.com Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising