Solved

SQL Replication (@@ServerName)

Posted on 2001-08-16
2
542 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
ID: 6394165
try

sp_addserver 'MyServer', local, MyServer

and recycle the server.
0
 

Author Comment

by:talal
ID: 6464581
Sorry, it took me awhile.

Thanks for your answer.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

840 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