小编Vyt*_*999的帖子

SQL Server 2008 R2 (Suspect) 模式 - 如何修复?

我有处于可疑模式的 SQL Server 2008 R2 数据库。我试图修复它运行此查询:

EXEC sp_resetstatus ‘yourDBname’;
ALTER DATABASE yourDBname SET EMERGENCY
DBCC checkdb(’yourDBname’)
ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB (’yourDBname’, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE yourDBname SET MULTI_USER
Run Code Online (Sandbox Code Playgroud)

但修复输出是这条消息:

Warning: You must recover this database prior to access.
Msg 8921, Level 16, State 1, Line 5
Check terminated. A failure was detected while collecting facts. Possibly tempdb out of space or a system table is inconsistent. Check previous errors.
Warning: The log for database 'ServeDB' …
Run Code Online (Sandbox Code Playgroud)

sql-server dbcc sql-server-2008-r2 corruption

5
推荐指数
3
解决办法
11万
查看次数

标签 统计

corruption ×1

dbcc ×1

sql-server ×1

sql-server-2008-r2 ×1