When you create and then drop many temporary tables in Microsoft SQL Server 2005, errors may be generated in the tempdb database. When this problem occurs, the following error messages may be logged in the SQL Server Errorlog file:
Message 1
Error: 605, Severity: 21, State: 3. Attempt to fetch logical page (1:584) in database 2 failed. It belongs to allocation unit 445237904015360 not to 72057594060079104.
Message 2
Error: 3316, Severity: 21, State: 1. During undo of a logged operation in database 'tempdb', an error occurred at log record ID (49:16:7). The row was not found. Restore the database from a full backup, or repair the database.
Message 3
Error: 5243, Severity: 22, State: 1. An inconsistency was detected during an internal operation. Please contact technical support. Reference number 8.
When error 605 and error 3316 are generated, both the following error messages may also be logged in the SQL Server Errorlog file:
Message 4
Error: 3314, Severity: 21, State: 4. During undoing of a logged operation in database 'tempdb', an error occurred at log record ID (49:16:12). Typically, the specific failure is logged previously as an error in the Windows Event Log service. Restore the database or file from a backup, or repair the database.
Message 5
Error: 3449, Severity: 21, State: 1. SQL Server must shut down in order to recover a database (database ID 2). The database is either a user database that could not be shut down or a system database. Restart SQL Server. If the database fails to recover after another startup, repair or restore the database.
Additionally, when error 605 and error 3316 are generated, the SQL Server service stops.