BUG: 229 Error on Stored Procedures Dependent ObjectID: Q156069
|
Error 229 may occur on a stored procedures dependent object (that is, a
table, view, or other stored procedure) when running the stored procedure
with the following conditions:
Use the SETUSER command to impersonate the object owner while creating the dependent object and stored procedure.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Here is an example of a create procedure command that would cause this
problem if created by the sa login:
CREATE TABLE objowner.permtest (a int)
GO
CREATE PROCEDURE objowner.sp_permtest AS
SELECT * FROM objowner.permtest
GO
GRANT EXECUTE ON objowner.sp_permtest TO probe
GO
Msg 229, Level 14, State 1
SELECT permission denied on object permtest, database pubs, owner
objowner
Additional query words: ownership chain access denied stored procedure
Keywords : kbnetwork SSrvStProc kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: April 2, 1999