Article ID: 123330
Article Last Modified on 3/14/2005
Inside a stored procedure, object names used with certain statements (the so-called utility statements) must be qualified with the object owners' name if other users are to use the stored procedure. The utility states are ALTER TABLE, CREATE TABLE, DROP TABLE, TRUNCATE TABLE, CREATE INDEX, DROP INDEX, UPDATE STATISTICS, and DBCC.
UPDATE STATISTICS permission defaults to the table owner and is not transferable, except to the database owner, who can impersonate the table owner by running the SETUSER statement.
login as sa use pubs go create procedure bug as update statistics dbo.roysched go grant execute on bug to dick /* dick is a member of public group only in pubs */ go login as dick use pubs go exec bug :2710 error
Additional query words: Windows NT
Keywords: kbbug kbprogramming KB123330