Could not find server 'EOP1' in sysservers.

I have two databases and a Linked Servers which connects between SQL Server 2000 and Oracle 8i.
When i try to access the tables and views under the Linked Server named EOP1 i can see all the tables and views from Oracle.
I have yet another Linked Server which connects the two SQL Databases residing on same server.One of these databases uses EOPI linked server to execute the queries against Oracle db.
When i fire a sproc from one SQL database to execute a sproc in other SQL database which in turn queries against Oracle Database i get the following error.
Server: Msg 7202, Level 11, State 2, Procedure spGetNewExhibitJSubContractorsDetails, Line 16
Could not find server 'EOP1' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.

Can anyone please help me on this one.I have created the EOP1 linked server and supplied all the required details but i still get this error as if it not created and not  present at all.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
run any of these to check for the available linked servers

select * from master..sysservers

exec sp_linkedservers

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dear Parveen,

Here is an example where I link a MySQL database to SQL Server:

@server='YouServer', -- This could be anything
@srvproduct='MySQL', -- This could be anything
@provider='MSDASQL', -- This MUST be MSDASQL for ODBC links
@datasrc='ODBC_DSN_NAME', -- This should be the ODBC System DSN. Do

I use a program called WinSQL ([url][/url]), which creates the Connection string. I used this connection string for the 'provstr' parameter.

In other words, i can say that Symptoms of yoru problem is:

1. I can execute the T-SQL in the Query window in the SQL2005 Management Studio without any issue. After that, CONVERTSDB is in the Linked Servers lists.

2. If I put the T-SQL into a stored procedure, it does not work, and generate the above error. (EXEC dbo.LoadConvertsDB)

3. In the same Query window, If the above T-SQL is executed first and then execute the stored procedure, it will succeed. In the stored procedure, only the below T-SQL is before the sp_addlinkedserver.



IF EXISTS (SELECT FROM sys.servers srv WHERE srv.server_id != 0 AND = N'CONVERTSDB') EXEC master.dbo.sp_dropserver @server=N'CONVERTSDB', @droplogins='droplogins';

hope that by performing the above mentioned way, you will get a solution of your query.

Chetan Sachdeva
parveenmehtaAuthor Commented:
Well i am getting this error message irrespective of whether i have EOP1 existing or not.
I just dropped this linked and created a new one with a different name and updated the sproc to refer to this new linked server but i still see this error with reference to EOP1.
This is getting crazy!!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.