Recovering MS SQL Server 2000 database in case of Error 8645

Lot many times, when you work on an MS SQL Server database you would have seen some queries unable to execute even if they are correctly constructed. Most of the times, these problems arise when there are not enough memory resources for the query to be executed. You should try to reduce the workload and run that query again. If the issue persists, then it may be possible that the database is corrupt, which can be recovered using a third-party MDF file recovery software.


Let us consider a practical situation in which you are running a query to retrieve some records in an MS SQL Server 2000 database. However, the query is failing and the following error message is getting displayed:


“A time out occurred while waiting for memory resources to execute the query. Re-run the query.”




The most possible cause of this problem seems to be memory allocation issues due to which the query does not execute.


There is the ‘query wait’ option in MS SQL Server. If its value is -1, then the query is tried 25 times to be executed. However, if the returned value is a nonnegative value then it means that despite having the memory to execute the query, it does not execute because of corruption.




To resolve this problem, you can perform the following measures:


Free the memory on the server by using following methods:

Check the size of the virtual memory paging file.

Try to increase the size of the file, if possible.

Try to close any applications that are running on the server.

Provide additional memory on the server.

You should try to reduce the server load.

You should create one or more indexes in the database.

You should increase the value of the ‘query wait’ configuration.



If you are still unable to recover the database, then it means that the database is corrupt and you would need to recover it. In such cases, a third-party master database file recovery software should be able to resolve all such corruption issues. The reason behind this is that these SQL recovery tools are read-only in nature that do not modify the existing database while recovery.


The most remarkable MS SQL Server recovery tool is Stellar Phoenix SQL Data Recovery, which is able to recover SQL databases from all instances of corruption. Supporting MS SQL Server 2008, 2005, 2000, and 7.0, thissoftware recovers various database components including triggers, tables, defaults, NDF files, stored procedures, collations, etc. With the ability to update its version over the Internet, this SQL database recovery tool is compatible with Windows 7, Server 2008, Vista, Server 2003, XP, and 2000.

My name is Mark Willium, I have done Ph.D in computer science and currently doing research on how to recover and repair corrupted SQL database. You can have more information about about SQL database recovery by visiting my blog

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected with IP Blacklist CloudIP Blacklist Cloud