September 18, 2009 at 9:02 am
I have created a linked server connection...but when I run my query I get:
Invalid object name 'VSMIADBGP01.LPB_GreatPlainsUtils.vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009'.
September 18, 2009 at 9:13 am
does wrapping it in brackets help? plus it needs to be a 4 part name...server.database.owner.object:
does this work:
SELECT * FROM [VSMIADBGP01].[LPB_GreatPlainsUtils]..[vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009]
--or
SELECT * FROM [VSMIADBGP01].[LPB_GreatPlainsUtils].[dbo].[vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009]
Lowell
September 18, 2009 at 9:33 am
As mentioned, the code below should work, you just missed a schema part (dbo), which is reason for your error message.
SELECT * FROM [VSMIADBGP01].[LPB_GreatPlainsUtils].[dbo].[vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009]
September 18, 2009 at 11:17 am
thanks guys
when I run it I get -
The OLE DB provider "SQLNCLI" for linked server "VSMIADBGP01" does not contain the table ""LPB_GreatPlainsUtils"."dbo"."vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009"". The table either does not exist or the current user does not have permissions on that table.
September 18, 2009 at 11:35 am
Hmm..
If this table actually exists then you have clear permission issue.
September 18, 2009 at 11:39 am
the view does exist...
how can I go about checking the permission?
September 18, 2009 at 11:51 am
definitely a permissions issue;
there's several ways to set up how to get to the view, and it depends on how it's set up.
in my example below, because i decided to use "sa", i don't have a permissions issue, but if i put in "webdev", who is my user who has access to just one specific database, any calls to a database that user does nto have access to would fail with the same permissions error you are receiving.
go to this spot on your list of linked servers:
Lowell
September 18, 2009 at 12:55 pm
Same error
Msg 7314, Level 16, State 1, Line 1
The OLE DB provider "SQLNCLI" for linked server "VSMIADBGP01" does not contain the table ""LPB_GreatPlainsUtils"."dbo"."vwADB_LPB_CONSOLIDATED_ACCOUNT_DIV_DEPT_BRANCH_YEAR_2009"". The table either does not exist or the current user does not have permissions on that table.
Under linked servers:
If I expand catalogs, I don't see my DB
I only see master, msdb and tempdb
If I click 'test connection' for linked servers, it tests fine.
September 18, 2009 at 1:18 pm
THANKS GUYS I GOT
THANKS TO YOU GUYS!!!
GOOD KARMA!!! 2 YOU ALL!!!!
September 22, 2009 at 1:24 am
March 23, 2011 at 6:36 pm
Please come back and tell us what you figured out. I am having the same problem.
Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy