INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Permissions problem executing stored procedure

Permissions problem executing stored procedure

(OP)
I have two stored procedures (actually several, but it boils down to this). I can execute both of them under my userid without problems.

We're using a specific userid for running reports. With this userid, I can execute one of the procs and not the other, and they both appear to have the same permissions. I checked the permissions for each stored proc for the user, and they both have Effective Permissions of EXECUTE. So, I'm stumped. Why can the user execute one of the stored procs and not the other?

An unforeseen consequence of the information revolution has been the exponential propagation of human error.

RE: Permissions problem executing stored procedure

(OP)
Sorry I forgot to put that in. "Login failed for user 'username'".

An unforeseen consequence of the information revolution has been the exponential propagation of human error.

RE: Permissions problem executing stored procedure

that's not permissions to the SP then.

If both SP's are on the same database and the login used (either SQL or Windows AD) is the same then I would think the SP is trying to link to another server (or execute a shell command on a share to which the user does not have permissions), and failing because permissions aren't set.

If SP's are on different DB's on same instance it may be permissions to the other DB that need fixing.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: Permissions problem executing stored procedure

(OP)
Looking further, in the log the error state is 8, "password did not match that for the login provided." I'm not able to see where the password would be provided, since I've already logged into the server.

An unforeseen consequence of the information revolution has been the exponential propagation of human error.

RE: Permissions problem executing stored procedure

(OP)
As it turned out, one of the procs had a reference to one server that had the password stored incorrectly. I found it by removing chunks of the proc and attempting to execute the rest using the defective login. Eventually I narrowed it down to a particular server reference, and from there I was able to resolve the problem. Thanks for your help!

An unforeseen consequence of the information revolution has been the exponential propagation of human error.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close