-- 查看具体页面信息 DBCC TRACEON(3604) -- 打开跟踪标志 GO DBCC PAGE(数据库名, 1, 31971864, 3) WITH TABLERESULTS GO
检查这个页面所属的对象:
1 2 3 4 5 6
-- 查找对象信息 SELECT OBJECT_NAME(99) as ObjectName, OBJECT_SCHEMA_NAME(99) as SchemaName, type_desc FROM sys.objects WHERE object_id =99
检查 tempdb 的空间情况(因为错误提示可能与 tempdb 有关):
1 2 3 4 5
-- 检查tempdb空间 SELECT name AS FileName, size/128.0AS CurrentSizeMB, size/128.0-CAST(FILEPROPERTY(name, 'SpaceUsed') ASINT)/128.0AS FreeSpaceMB FROM tempdb.sys.database_files