2016-10-19 105 views
0

我的SQL Server 2012數據庫文件無法打開,它會導致以下錯誤。MDF文件未在SQL Server中打開

Msg 824, Level 24, State 2, Line 1
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:903; actual 0:0). It occurred during a read of page (1:903) in database ID 6 at offset 0x0000000070e000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\inventoryDB.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

我還檢查它通過使用

DBCC CHECKDB(inventoryDB, REPAIR_ALLOW_DATA_LOSS) 

但低於

DBCC results for 'inventoryDB'.
CHECKDB found 0 allocation errors and 0 consistency errors in database 'inventoryDB'.

結果給出的任何可能性,從該數據庫文件恢復我的數據?我在許多網站也做了很多方法。但它不起作用並顯示相同的錯誤消息。

+0

哦,快樂,我真的只是告訴別人做適當的SQL Server數據庫備份的重要性。 –

+0

@JerryDodge Yup,在進行備份後驗證媒體和檢查一致性! –

回答