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)
 serverproperty('servername')

Author  Topic 

dejjan
Yak Posting Veteran

99 Posts

Posted - 2005-11-23 : 11:28:21
Hello,
my SQL Server was installed with name 'FIRSTNAME'. After that I change its name into 'SECONDNAME', with :
sp_dropserver 'FIRSTNAME'
sp_addserver 'SECONDNAME', LOCAL.

But when I start:
select serverproperty('servername')

result is: 'FIRSTNAME'.

Wherefrom serverproperty('servername') takes information.

mcrowley
Aged Yak Warrior

771 Posts

Posted - 2005-11-23 : 13:24:47
Did the change actually take in sysservers? What is listed as srvid = 0 on your machine?
Go to Top of Page

dejjan
Yak Posting Veteran

99 Posts

Posted - 2005-11-24 : 01:45:35
in sysservers is 'SECONDNAME'.
And, select @@servername (after restart) shows 'SECONDNAME', but serverproperty('servername') still shows 'FIRSTNAME'.
Go to Top of Page
   

- Advertisement -