Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

OpenRowSet without sysadmin rights

$
0
0

Hi,

When I execute

SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0 Xml;HDR=YES;Database=\\LinkedServer\Share\TEST\emp.xls','SELECT * FROM [Sheet1$]');

 I got error 

"Ad hoc access to OLE DB provider 'Microsoft.ACE.OLEDB.12.0' has been denied. You must access this provider through a linked server."

I run it without sysadmin roles or rights. I give ADMINISTER BULK OPERATIONS permission to the user. Even using this user I can execute   EXEC xp_cmdshell  'dir "\\LinkedServer\Share\TEST\emp.xls"' 

How to execute OPENROWSET command without sysadmin permission plz help me.


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>