I have a SQL 2005 clustered server which is returning a Null value for @.@.servername. I find the server entry in sysservers. I have replication configured on this so i am not able to do a Sp_dropserver & sp_addserver as this acts as a publisher. The configured merge repication stopped working because of this issue and I am not able to delete replication as the the delete option uses @.@.servername which returns a null value. So I am struck in a loop.
Any advice is appreciated.
thanks
@.@.Servername of null can happen if there is no entry in sys.servers for server_id 0. check sys.servers with this:
select * from sys.servers where server_id=0
If this returns 0 rows you can add the local server with
sp_addserver '<servername>', local
you will need to restart the server for this to take effect.
No comments:
Post a Comment