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>
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 ?