subject: How To Rectify Error 945 In Ms Sql Server 2008 [print this page] If you are a regular MS SQL Server 2008 user, then you might have faced several situations wherein you are unable to mount a database. Such cases are sometimes cause very serious problems such as database crashes or complete inaccessibility of the database thereby making your data very insecure. These corruption situations can arise due to various reasons such as abrupt system shutdown when the database is open, virus infections, power outages, hardware issues, etc. In such cases, you should find the exact cause of corruption and try to repair SQL database. If you are unable to repair SQL file, then you should use third-party MDF repair software to perform SQL repair.
Consider a scenario wherein you try to open a database while using MS SQL Server 2008. However, the database does not open. An error message pops-up as a result, that is:
"Database '%.*ls' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details."
Cause:
The root cause of such erroneous situation is that the database could not be mounted because some files or resources are missing. Another cause of such situation is that the database is corrupt, thereby disabling you to mount it.
Resolution:
To resolve this problem, you should repair the MDF file. To do this, you need to perform the following methods:
Check the error log: You should check the error log to get the details about the resources such as memory, disk space, permission failure, etc that may have caused the problem to occur.
Confirm the location of MDF/LDF files: You should check the location of the MDF/LDF files and verify whether the Database Engine account has the required credentials to access these files.
Restart the database: Finally, you should restart the database using the ALTER DATABASE query. This query sets the database to online mode.
The aforementioned methods should be able to set the database up and running. However, if you still are not able to mount the database then you should use a third-party MS SQL repair software to repair SQL database. Such MDF file repair tools are read-only in nature that employ fast and sophisticated scanning algorithms to scan the corrupted database.
Stellar Phoenix SQL Data Recovery is SQL repair software that repairs MDF file and LDF file alike. Specifically designed for MS SQL Server 7.0, 2000, 2005, and 2008, this MDF repair utility restores various database objects such as tables, stored procedures, collations, triggers, defaults, etc. In addition, this MDF repair tool preserves the relationship among the database tables. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.