So there is a linked server. However, I am not currently able to view all databases associated with that linked server from within SSMS after expanding the catalog dropdown. It is my understanding that this may be a permissions issue. However, I am unsure as to which permissions I need to grant in order to interact with tat db from the linked server.
Any ideas?
After executing the following command from the linked server:
select * from [<server>].[<database>].[dbo].table1
I receive the following error message:
The OLE DB provider "SQLNCLI10" for linked server "" does not contain the table """."dbo"."table1"". The table either does not exist or the current user does not have permissions on that table.
TLDR;
Problem: I'm not sure how to get one of the databases associated with my linked server to show up.!
SELECT * FROM linked_server.database.dbo.tablename
for a table you know exists, what happens? If you get an error message, please state it explicitly (a lot of people like to say "SQL Server doesn't like it" for some reason).GRANT CONNECT ON DATABASE::dbname TO [login_name];
wherelogin_name
is whoever the linked server is impersonating - of course it probably has to be run on the other server, not via the linked server. And, of course, that won't magically grant that login any permissions on any objects within the database.