SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Renaming a SQL 2K Server?


Renaming a SQL 2K Server?

Author
Message
Tyson-633393
Tyson-633393
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 68
Just a quick question...

I have a SLQ 2K server on W2K. 55 databses. Would renaming the server name in Windows
affect the databases? Would I need to re-register the new name in SQL?
Tommy Bollhofer
Tommy Bollhofer
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3922 Visits: 3359
After renaming the Windows server, issue a sp_dropserver, sp_addserver and restart MSSQL services.


use master
go
exec sp_dropserver 'old server name'
go
sp_addserver 'new server name', 'local'
go



Tommy

Follow @sqlscribe
Tyson-633393
Tyson-633393
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 68
Yes. I did find this in the forums.

Thx.
Tyson-633393
Tyson-633393
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 68
Actually, one more quest...I had to rebuild the server a few weeks ago on a new box.
The new server was built on a node name caled sqltest. After I moved the databases from the old server to the new server, I renamed the node name in Windows (on new server) back to sqlproduction. Do I need to run that query in SQL?

Thanks
Tommy Bollhofer
Tommy Bollhofer
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3922 Visits: 3359
A simple verification - on the server in question, execute a


select @@servername



If this returns the correct server name then you are all done. If not use the sp_dropserver, sp_addserver method to change the name.

Tommy

Follow @sqlscribe
Lester Policarpio
Lester Policarpio
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1797 Visits: 2459
Tommy Bollhofer (2/19/2008)
After renaming the Windows server, issue a sp_dropserver, sp_addserver and restart MSSQL services.


use master
go
exec sp_dropserver 'old server name'
go
sp_addserver 'new server name', 'local'
go



Just be aware that your current jobs may not function because of changing the server's name you can verify it with this query

SELECT *
FROM msdb..sysjobs

"-=Still Learning=-"

Lester Policarpio
Tyson-633393
Tyson-633393
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 68
All good, query returned the correct node name.

Now I have an .idc error. When in the app that connects to the sql database, there is a link to IE that users click on to open IE.

The error is: 'unable to open http://servername/idi/scripts/distsumsetdirect.idc? Cannot download the information you requested'
SQL ORACLE
SQL ORACLE
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6793 Visits: 1314
You talked about node. Did you build your SQL Server on a cluster? A node is different from a name of an SQL Server on a cluster.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search