Groups | Blog | Home
all groups > sql server replication > november 2005 >

sql server replication : @@SERVERNAME returns NULL



Darin
11/12/2005 4:24:41 PM
When I do:

SELECT @@SERVERNAME

It returns NULL. How, and how can I fix.

Thanks.

Darin

Paul Ibison
11/13/2005 3:48:46 PM
Darin,
use:
Sp_Addserver 'NewName', 'local'
GO
Stop and Start SQL Services
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button