Database '%.*ls' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Error 945 is returned when the database is marked IsShutdown. This occurs when a database cannot be recovered due to missing files, or some other resource error that usually can be corrected easily.
First, verify that the database is marked IsShutdown using DATABASEPROPERTY.
Then, determine the cause of the error by consulting the errorlog, and take action as noted below.
The database is recovered and brought online by this procedure.
The database is recovered and brought online by this procedure.
The insufficient memory error can occur when a number of databases are recovered at the same time. Retrying the operation may fix the problem:
If retrying the operation does not work, consider freeing up memory.