troubleshooting Question

when trying to do sp_addserver 'HOST', local - I'm getting an error.

Avatar of drigovt
drigovtFlag for Israel asked on
Microsoft SQL Server 2005
12 Comments1 Solution3655 ViewsLast Modified:
We are running Altiris Deployment server (HP), and I had some query problems.
The error was the the server is unknown and that I need to run "sp_addlinkedserver" in order the query to work. But it didn't. So then I read that I should check the name in the SQL by doing "select @@servername" if the name is different to do this:

sp_dropserver <whatever was returned by @@servername>
go
sp_addserver '<the correct name>', local
then restart the server.

But now I'm getting this error:
Msg 15028, Level 16, State 1, Procedure sp_MSaddserver_internal, Line 89
The server 'SERVER'' already exists.

I think it has something to do with the "sp_addlinkedserver".

Now when I run "select @@servername" I get "NULL".

What should I do ?

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros