Having an issue with a corrupt SQL 2005 database. Event log is giving a lot of I/O errors. Running the following command:
DBCC CHECKDB('database') WITH TABLERESULTS, NO_INFOMSGS, ALL_ERRORMSGS
Gives the following output:
CREATE FILE encountered operating system error 665(error not found) while attempting to open or create the physical file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\database.mdf:MSSQL_DBCC15'.
Msg 7928, Level 16, State 1, Line 1
The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline.
Msg 824, Level 24, State 2, Line 1
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:4033984; actual 0:0). It occurred during a read of page (1:4033984) in database ID 7 at offset 0x000007b1b80000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\database.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.
Any help on the next steps would be appreciated.