February 3, 2014 at 8:54 am
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.
February 3, 2014 at 9:08 am
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?
February 3, 2014 at 9:29 am
yes i can see the tables under catalog. Just now i gave read permissions and it worked.
Thanks.
February 3, 2014 at 10:10 am
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) *
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
February 3, 2014 at 10:49 am
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