looks fine, but we should re-invent the wheel? the corruption of databases can be fixed by Recovery Toolbox for SQL Server application, for example. Get the [url=http://www.recoverytoolbox.com/microsoft_sql_server_database_repair_tool.html]best sql database repair tool[/url] and try to reindex the database beyond question

I know easier ways to restore corrupted databases, this task can be performed by the [url=http://www.recoverytoolbox.com/microsoft_tool_for_ms_sql_recovery_for_sql_server_2000_corrupt_database.html]best mssql recovery[/url] program.

SQL files may be fixed owing to [url=http://www.mdfrecoverytool.com]mdf recovery[/url]. The tool can work with sql databases from local area network. It can't modify your source data during restoration. The utility supports all popular versions of Windows OS.

There are two most important files in SQL i.e. .mdf and .LDF. Any corruption in these files makes you database inaccessible. You will encounter several error messages while trying to execute the query. In serious situation you may even fails to launch the application. For the safety of data it is very essential for you to [url=http://www.mssqldatabaserepair.org]repair SQL database[/url] as soon as possible. In order to repair database you can try third party sql repair tool.