|
Question : EXECUTE permission denied on object 'xp_cmdshell' How to Allow call from stored procedure called by asp page.
|
|
I have a stored procedure (sproc) that is called by an asp page, the sproc includes exec master..xp_cmdshell in order to write a text file used by a label printing system. The sproc runs fine when called from Query Analyzer with high level permissions, but fails with the message: Microsoft OLE DB Provider for SQL Server error '80040e09'
EXECUTE permission denied on object 'xp_cmdshell', database 'master', owner 'dbo'. when called by the asp page. How can I configure this to be able to run without giving IUsr full permissions on the master db.
|
|
Answer : EXECUTE permission denied on object 'xp_cmdshell' How to Allow call from stored procedure called by asp page.
|
|
You can use sp_Oacreate commands to call your own dlls that you write....other than that, just give the sql user that you connect with the rights for xp_cmdshell, you should be all good after that.
|
|
|
|