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.