Execute permission denied on object Run Time Error.

tesla764
tesla764 used Ask the Experts™
on
Has anyone encountered this error...

Run-Time Error ‘-2147217911 (80040e09)’
‘Execute permission denied on Object ‘ITS_CheckBatchNumber’, database ‘RPR_Dev’, owner ‘dbo’.

I am running vb6 code that interacts with SQL Server 2008 R2.

Any information on what I should check would be very helpful.
Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
GRANT EXECUTE ON [storedProcName] TO [userName] where storedProcName is the name of your stored proc and userName is the user you want to give rights to
Use Microsoft SQL Server Management Studio to connect to the SQL Server

Go to database and open its properties. Then go to the Permissions section, select the user account from step 1 and grant Execute permission to it:

Author

Commented:
I tried your second suggestion and I don't see any options to grant execute privileges. I only see create and backup options. Should I see execute options?
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I also tried...
GRANT EXECUTE ON ITS_CheckBatchNumber TO 'Mac-Direct\sritsick'

and I got a syntax error. What I am I doing wrong?

Author

Commented:
Got the syntax error worked out. This still doesn't fix the problem. Do you think the Admin with full privileges is the only account that can do this?

Author

Commented:
I got this fixed. The Grant command worked. What I was doing wrong was granting to the wrong user name.
Thanks, you were a great help. I will close this now and assigned full points to you.

Author

Commented:
Thanks, Fantastic help!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial