The information in this article applies to:
BUG# NT: 936 (4.21a) SYMPTOMS
If a user executes a stored procedure with UPDATE STATISTICS <object>
and is not the object owner or the dbo of the database the object is
in, SQL Server returns error 2710:
This error appears regardless of satisfying the following condition that is specified on page 233 of "Transact-SQL Reference": 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. WORKAROUND
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 4.21a. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
If TRUNCATE TABLE is used instead of UPDATE STATISTICS, then the user
gets 4710 error. This seems to be a problem with all utility
statements inside a stored procedure.
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. NOTE: The special case of UPDATE STATISTICS in a stored procedure is not covered here. To Verify
Additional query words: Windows NT
Keywords : kbprg SSrvStProc kbbug4.21a SSrvWinNT |
Last Reviewed: April 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |