0

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?

4

1 回答 1

1

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'
于 2013-01-16T08:00:05.643 回答