Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 servername

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2010-08-26 : 09:42:39
Hi
I have installed a third party db scan tool and trying to connect the server(local), but throwing below error
Error Number:
Description: [Microsoft][ODBC SQL Server Driver][SQL Server]Could not find server 'XYZDEV01' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
Module Name: modASI_ADO_APIS
Procedure Name: GetNextScanID

I found that the server names are different.

SQLManagement studio servername is xyzdev01
Windows servername(MyComputer) is xyzdev01


But when I execute Select @@Servername, I got the servername xyzdemO01

Why the server names are different. How to resolve this, Please advice. I am using sql 2005

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-26 : 10:14:36
Somebody changed the server name at some point and didn't update SQL Server with this new information. Check out the article in BOL on how to rename a SQL Server.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -