Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts
Sunday, October 24, 2010
Now, in case you fail to recover the contents from SQL suspect database even after trying these steps, then there is another way to get back you crucial information. you can try using a third-party software device to recover SQL database contents. One such device is SysTools SQL Recovery software which is an easy-to-use device which you can use for SQL suspect database recovery as the software can repair corrupt MDF files & recover SQL database contents in all types of corruption cases.



A feasible scenario with SQL Database is - At startup, SQL Server tries to receive a lock on the device file. If the device is used by some other method (say for example - the backup software) or if the file is missing, you might encounter this problem that your SQL database is in "Suspect Mode." This can be a grave problem putting your crucial information at stake. To prevent such severe SQL information loss, there is a method that you can try yourself. follow the following steps:
1) first, be sure that the device file is available.
2) Use supplemental stored procedure sp_resetstatus to reset the status of a suspect database.
For SQL Server versions 6.0 & 6.5 - if this is not done already, then generate procedure by executing the Instsupl.sql script (found in the Mssql\Install directory).
For SQL 7.0 & later versions - generate it at installation by the inscat.sql script (found in Mssql\Install directory).
3) Run sp_resetstatus in the master database for the suspect SQL database:
use master
go
exec sp_resetstatus your_database_name
4) cease & start SQL Server again.
5) Confirm that the database was recovered & is available.
6) Run DBCC NEWALLOC, DBCC TEXTALL & DBCC CHECKDB.