I have a SQL Server 2000 database (mdf
and ldf
).
When I try to attach it, using SQL Server Management Studio Express 2005, I get this error:
Attach database failed for Server 'XXXXX\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:2474; actual 0:0). It occurred during a read of page (1:2474) in database ID 30 at offset 0x00000001354000 in file 'F:\database\DB.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. During redoing of a logged operation in database 'DB', an error occurred at log record ID (1128:22250:4). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database. Could not open new database 'DB'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 824)
Any help?
.mdf
is corrupt ... – marc_s Mar 5 at 15:44.mdf
and.ldf
files are not backups. – Aaron Bertrand♦ Mar 5 at 15:46