Could not find server 'EOP1' in sysservers.

Posted on 2006-04-18
Last Modified: 2007-12-19
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.
Question by:parveenmehta
    LVL 75

    Accepted Solution

    run any of these to check for the available linked servers

    select * from master..sysservers

    exec sp_linkedservers
    LVL 4

    Expert Comment

    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

    Author Comment

    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!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Read about achieving the basic levels of HRIS security in the workplace.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now