I have a classic ASP application running under IIS (v8.5.9600) on Windows Server 2012R2. One of the pages makes use of a file upload control that allows a user to upload a data file to be processed by the system. Once the file is uploaded a stored procedure is executed that takes the name of the file uploaded and inserts it into a table.
Some of my users have been receiving an error message after uploading the file. Checking the IIS log I see the error is the following ...
244|80040e09|[Microsoft][ODBC_SQL_Server_Driver][SQL_Server]The_EXECUTE_permission_was_denied_on_the_object_'myStoredProcedureName'__database_'myDatabaseName'__schema_'dbo'.,
From reading other articles it seems as though I need to grant execute permissions to this specific stored procedure. My question is this ..
- Which user needs the execute permissions? Is it the user that the database connection specifies or is it the user that the website runs under via IIS?
- This error does not occur with most users. It only seems to be occurring with a few of the users that upload files. If the issue were permissions shouldn't it be occurring with all users?