BUG: 229 Error on Stored Procedures Dependent ObjectLast reviewed: April 9, 1997Article ID: Q156069 |
The information in this article applies to:
SYMPTOMSError 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:
WORKAROUNDUse the SETUSER command to impersonate the object owner while creating the dependent object and stored procedure.
STATUSMicrosoft 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.
MORE INFORMATIONHere 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 GOThe following error occurs when the stored procedure is run by the probe login:
Msg 229, Level 14, State 1 SELECT permission denied on object permtest, database pubs, owner objowner |
Additional query words: ownership chain access denied stored
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |