• subscribe
November 20, 2001 12:00 AM

Updating SQL Server’s Internal Server Name

SQL Server Pro
InstantDoc ID #22964

Our SQL Server 7.0 server reflects the old server name instead of the current server name. All the databases on the current server, including the master database, are restored from the old server. How can I avoid passing on the old server and database names in the future? If I can't avoid this result, how can I correct it? I found a solution on the Microsoft Web site, but Step A confuses me. Here's the solution:

  • Step A—Run SQL Server 7.0 Setup from the original product installation CD-ROM. Doing this doesn't reinstall SQL Server or any components; however, it updates SQL Server 7.0 internally to reflect the new Windows computer name.
  • Step B—Start Query Analyzer, connect to the appropriate SQL Server, then run the following two stored procedures to update SQL Server's internal server name:
sp_dropserver <oldname>
sp_addserver <newname>, local

where oldname is the original computer name and newname is the new computer name.

Do I have to go through the entire installation process when I carry out Step A?

If the MSSQLServer service can't start, you need to follow Step A. However, if SQL Server is running, you can move straight to Step B.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...