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
 Import/Export (DTS) and Replication (2000)
 Replication Hell Continues: @@SERVERNAME=NULL

Author  Topic 

aiken
Aged Yak Warrior

525 Posts

Posted - 2002-01-15 : 14:00:54
Ok, if you've been reading this forum for a while you know that I've been fighting with replication on a production server for over a month. Typical problem is that replication gets partly set up, and refuses to be partially removed.

Previous topics: http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=11477 and http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=10933

Well, I just discovered something strange. Maybe I'm just clueless and the function is no longer supported on SQL2K. But how about this:

SELECT @@SERVERNAME
NULL

Can that be right? sp_helpserver looks right, with the netbios name of the server for both "name" and "network_name".

Any ideas?

Thanks
-b

chadmat
The Chadinator

1974 Posts

Posted - 2002-01-15 : 14:09:25
Look in your errorlog, about 20 or so lines from the top, it will tell you the servername it is starting as.

An easy way to fix it is:
sp_dropserver NULL
go
sp_addserver 'correctname', local



HTH
-Chad

Go to Top of Page

aiken
Aged Yak Warrior

525 Posts

Posted - 2002-01-15 : 16:07:37
Well, in the log it shows the correct server name for "Server name is...".

sp_helpserver doesn't have a NULL entry.

sp_dropserver NULL yeilds "The server (null) does not exist."

Argh... any other ideas?

Thanks
-b

Go to Top of Page

PiecesOfEight
Posting Yak Master

200 Posts

Posted - 2002-01-15 : 17:52:28
Did you try running the add w/o doing the drop first?

Go to Top of Page

DavidD
Yak Posting Veteran

73 Posts

Posted - 2002-01-15 : 18:36:30
Did you install SQL Server from an image? We had a similar problem on an imaged laptop once.
No real solution except re-installing.

Go to Top of Page

aiken
Aged Yak Warrior

525 Posts

Posted - 2002-01-17 : 15:01:55
No, this was an install from a CD. A recent one, too, as I did a complete reinstall hoping it would fix replication. No luck on that front.

Doing the sp_addserver results in a "server sa111 already exists" (since it does appear in sp_helpserver). I'll try dropping that local server and re-adding it, I guess.

Craziness. Does replication ever "just work" from the get-go?

Cheers
-b


Go to Top of Page
   

- Advertisement -