Linked server query error

  • I had setup linked server and when i query the it gives me below error.

    QUERY:

    SELECT top * from [Servername].[WH_SYSTEM].[dbo].T_ENCOUNTER_PHYSICIAN

    WHERE PhysicianID LIKE '[0-9]%'

    Output:

    Msg 7357,Level 16, State 2, Line 1

    Cannot process the object ""WH_SYSTEM."dbo"."T_ENCOUNTER_PHYSICIAN"".

    The ole db provider "sqlncli10" for linked server '' servername" indicates that either the object has no columns or the current user does not have permissions on that object.

  • Have you checked the permissions? Are you sure, the remote user defined in the linked Server has appropriate permissions to access the tables on your remote server? How is the security defined in your Linked Server? Are you able to test the linked Server successfully and do you see your remote table(which you are trying to query) after expanding your catalog(s) under your linked server from Object Explorer?

  • yes i can see the tables under catalog. Just now i gave read permissions and it worked.

    Thanks.

  • p.swathi4 (2/3/2014)


    I had setup linked server and when i query the it gives me below error.

    QUERY:

    SELECT top * from [Servername].[WH_SYSTEM].[dbo].T_ENCOUNTER_PHYSICIAN

    WHERE PhysicianID LIKE '[0-9]%'

    Output:

    Msg 7357,Level 16, State 2, Line 1

    Cannot process the object ""WH_SYSTEM."dbo"."T_ENCOUNTER_PHYSICIAN"".

    The ole db provider "sqlncli10" for linked server '' servername" indicates that either the object has no columns or the current user does not have permissions on that object.

    Linked server error messages rarely tell you anything useful. There's an error in your query.

    Try SELECT TOP(10) *


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • sorry mistyped query in forum.

    I checked the security and permissions and it works now.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply