Reputation: 60831
I have a view in sql server 2008 that selects from a linked server.
I am able to select from the view only if I open SSMS as administrator
.
If I do not open SSMS as admin and try to select from the view, I get the error unspecified error
Here's my linked server:
use master
go
EXEC sp_AddLinkedServer @server = 'SectionA',
@srvproduct = '',
@provider = 'Microsoft.ACE.OLEDB.12.0',
@datasrc = 'C:\SectionAReport\',
@provstr = 'Text'
How can I allow ALL USERS to select from this view?
Upvotes: 0
Views: 4243
Reputation: 432471
With "sp_addlinkedsrvlogin" you should be able to set the remote permissions.
Specifically, try this
EXEC sp_addlinkedsrvlogin @rmtsrvname = 'SectionA'
, @useself = 'FALSE'
, @locallogin = NULL -- all local users
, @rmtuser = 'whatevername'
, @rmtpassword = 'whateverpassword'
Upvotes: 1