Solved

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

Posted on 2009-05-14
7
1,285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

737 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