Solved

execute sp_addlinkedserver to add the server to sysservers after renaming mu computer

Posted on 2009-05-14
7
1,281 Views
Last Modified: 2012-05-07
Hi experts,
I have a server with win 2003 enterprise and sql 2005
an ecommerce site is hosted on this server

I have changed my computer name due to netbios issue, and after restarting my server, the web application running on my server does not work proprely
when i intend to write in to the database i get an error

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find server 'EXPERTHOST-025' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.

Please anyon,e has a fix
thanks
0
Comment
Question by:humer2000
  • 3
  • 3
7 Comments
 
LVL 5

Expert Comment

by:sampipes
ID: 24386371
You can probably edit it in SSMS, go into Server objects and Linked Servers
0
 
LVL 6

Expert Comment

by:bull_rider
ID: 24386504
sp_dropserver <old_name\instancename>
GO
sp_addserver <new_name\instancename>, local
GO
0
 
LVL 1

Author Comment

by:humer2000
ID: 24386547
my last instance name was the default instance
so what should i put in

sp_dropserver <old_name\instancename>
GO
sp_addserver <new_name\instancename>, local
GO
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 6

Accepted Solution

by:
bull_rider earned 500 total points
ID: 24386597
supposing your old computer name was EXPERTHOST-025 and your new name is EXPERT

Then put it like :

sp_dropserver [EXPERTHOST-025]
GO
sp_addserver [EXPERT], local
GO


Let me know if you face any more issues.
0
 
LVL 1

Author Comment

by:humer2000
ID: 24386706
now i get this error
Server 'EXPERTHOST-025' is not configured for DATA ACCESS
0
 
LVL 6

Expert Comment

by:bull_rider
ID: 24386958
Should not you create a new question thread for this? :)
0
 
LVL 1

Author Comment

by:humer2000
ID: 24387368
rebooting the server corrected the error
thx a lot
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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.
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

803 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