Solved

SQL Replication (@@ServerName)

Posted on 2001-08-16
2
539 Views
Last Modified: 2012-08-13
Hello I am getting the following error trying to work with replication between 2 SQL servers.
By the way, I am not sure if this matters but i want the distributor to be SQL 7 and the client to be
SQL 2000.

The error i am getting is:
---
SQL Server Enterprise Manager could not complete the wizard because @@SERVERNAME for '' is NULL.
Use sp_AddServer to set @@ServerName
---

By the way, I tried to execute sp_AddServer and restarted the server but did not work. This is What
i typed:
Exec sp_AddServer 'MyServer'
It did not return any error. But it did not help.

Please help.
Thank you,
0
Comment
Question by:talal
2 Comments
 
LVL 3

Accepted Solution

by:
mathavra earned 200 total points
Comment Utility
try

sp_addserver 'MyServer', local, MyServer

and recycle the server.
0
 

Author Comment

by:talal
Comment Utility
Sorry, it took me awhile.

Thanks for your answer.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now