The information in this article applies to:
SYMPTOMSIn SQL Server 7.0, when a non-admin user (a user that is not a member of a db_owner role or a user that is not aliased to a database owner [DBO]) creates a temporary table with an identity column and tries to set IDENTITY_INSERT on, the following error 8104 occurs:
CAUSEThis problem occurs because the owner of temporary tables created by any user is DBO. However, whenever you attempt to process anything in tempdb your login is mapped to guest user. WORKAROUNDTo work around this problem, make the guest account in tempdb a member of the db_owner role. However, since tempdb is recreated at every startup, you must do this inside a startup procedure.
Additional query words: IDENTITY_INSERT, TSQL, temporary tables, set
Keywords : kbbug7.00 kbSQLServ700 |
Last Reviewed: December 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |