Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Renaming a server

Author  Topic 

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-02 : 14:36:11
Hi,
We renamed our NT4.0 (SP6a) server in which SQL Server 2000 is residing (sp3).
The SQL Server recognized the new name immediately but it was recognizing the old name also.
We ran the following command in the QA:
sp_dropserver 'old server name'
sp_addserver 'new server name', 'local'
Still old and new registration to the server exists.
We are having replication issues (transactional replication) where the record modifications are not synchronized from subscriber to the publisher (subscriber is the renamed server)

Thanks in advance,

Rushdi

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-03 : 23:21:37
what does select @@servername show you?
Go to Top of Page

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-04 : 08:38:00
the old server name. I can sign on using both names.
Go to Top of Page

franco
Constraint Violating Yak Guru

255 Posts

Posted - 2004-10-04 : 08:44:56
After you change the server name you need to reboot SQL Server.
Then connect to the new server name in Query Analyzer and run the following command:

sp_dropserver 'old server name'
sp_addserver 'new server name', 'local'

Delete the entry in Enterprise Manager for the old server name.
You also need to stop and start the SQL Server service to complete the process.
HTH.





Franco
Go to Top of Page

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-04 : 08:53:41
we did all that. We just found out that we can ping the NT server and getting replies from both names. So it looks like a network issue.
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-04 : 23:56:57
quote:
Originally posted by rushdib

we did all that. We just found out that we can ping the NT server and getting replies from both names. So it looks like a network issue.



if you're still seeing the old name then dropping the server name was not successful, you should see the new name on @@servername.

repeat the process:

1. change the machinename
2. restart the machine
3. issue the sp_dropserver and addserver
4. restart the sql service
5. check for @@servername
Go to Top of Page

hgorijal
Constraint Violating Yak Guru

277 Posts

Posted - 2004-10-05 : 02:00:03
quote:
Originally posted by rushdib

we did all that. We just found out that we can ping the NT server and getting replies from both names. So it looks like a network issue.



It is. NATing might have been done on the servers ip with the old server name. Contact your local network group and have it changed to the new server anme.

Hemanth Gorijala
BI Architect / DBA...
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-05 : 02:04:19
quote:
Originally posted by hgorijal

quote:
Originally posted by rushdib

we did all that. We just found out that we can ping the NT server and getting replies from both names. So it looks like a network issue.



It is. NATing might have been done on the servers ip with the old server name. Contact your local network group and have it changed to the new server anme.

Hemanth Gorijala
BI Architect / DBA...



just couldn't resist... hey rushdib,by any chance, are you with the same company as elwoos?

just asking...
Go to Top of Page

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-05 : 08:50:00
ok guys, the renamed machine is a primary domain controller. So the network admin is saying that the old name going to be in the DNS until October 26th 2004(expiry date).
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-05 : 23:07:06
is it advisable to have your sql on a primary domain controller?

just curious...
Go to Top of Page

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-06 : 14:39:03
jen,
we didn't have any issues for the past four years.

Rushdi
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-10-06 : 14:40:31
You would see better performance if the server running SQL Server was just a member server of the domain. It is highly recommended that this server be dedicated to SQL Server. But I guess dedicating a server to SQL Server just depends on the size of your organization and your needs.

Tara
Go to Top of Page

Pooja
Starting Member

2 Posts

Posted - 2004-10-25 : 08:19:16
Hi,
I have a similar problem.
But, select @@servername shows new servername.
Still I am able to register using both old and new names.
Any suggestions.

Thanks in advance.
Pooja
Go to Top of Page

rushdib
Yak Posting Veteran

93 Posts

Posted - 2004-10-25 : 10:10:50
We have discontinued use of that SQL Server and moved the data to a different server.
It maybe the old server name still exisit in the DNS.
Go to Top of Page

Pooja
Starting Member

2 Posts

Posted - 2004-10-26 : 01:25:35
Thanks for the solution. As rightly said by you, the old server name still existed in the DNS.
Go to Top of Page
   

- Advertisement -