Solved

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

Posted on 2009-05-14
7
1,278 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now