Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Revoking and Granting permissions.. SQL Security Bug\Issue ?

Status
Not open for further replies.

rzirpolo

Programmer
Apr 8, 2002
163
GB
I am getting a very strange issue occurring when granting and revoking permissions on Roles in my database.

As part of the testing that I'm doing in a Role I revoked the EXEC permission on a stored procedure and when attempting to run the function in my VB app which referenced this procedure I got the error message 'EXECUTE permission denied on stored procedure....' which makes perfect sense. But when going back and granting the permission back to the role when I run the same function in my VB app I get a number of 'SELECT permission denied on object…' errors.

And these SELECT statements are in reference to what the stored procedure is running against ? Is this an issue with SQL security ?

Looking at BOL I found info in regards to the system stored procedure 'sp_change_users_login'. This talks about a discrepancy between the sysusers and syslogins tables. My only concern is that this is for specific users whereas my error is occurring for every member of this role ?

Can anybody provide any insight ?

"For those of you watching in black and white, Spurs are in the all yellow strip." - John Motson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top