Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

Sql 2008 Stored Procedure Permission Chaining Issue

$
0
0

I have a stored procedure that I want to use to select records from a table in a database.

I have given permissions for a user to execute the stored procedure.

The user received an error stating that he does not have permission to perform a select against the table in question.

The proc and table are both owned by dbo and both are in the same database. Isnt permission chaining supposed to work in this situatiuon?

If I set select permission , for the user, on the table, access is granted when the proc is run and everything goes fine. Remove the select permission on the table and the problem returns.

I thought if I give the user permission to execute the proc, that there should be no permission check on the table since the owner is the same!

My understanding is that permission chaining is still supposed to work as it did before in Sql 2008.

My database owner is SA. My table owner is DBO and the procedure owner is DBO.

Any thoughts?


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>