Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 763
  • Last Modified:

Execute permission denied on object Run Time Error.

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
0
tesla764
Asked:
tesla764
  • 5
  • 2
1 Solution
 
ravikantninaveCommented:
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
0
 
ravikantninaveCommented:
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:
0
 
tesla764Author 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?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
tesla764Author 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?
0
 
tesla764Author 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?
0
 
tesla764Author 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.
0
 
tesla764Author Commented:
Thanks, Fantastic help!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now