We faced an issue on a non production environment, with the below error...
Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details.
The solution was to free up some disk space by moving few of teh files on a different location and re-attach the database. that solved the issue.
.............................
I want to re-create this error, but no matter what i do, I am unable to do that. I created a database on a USB and tried to create exact scenario by creating multiple records and making it run out of space.. but i always get error 1101 and not 945.I am wondering how can i reproduce the error number 945 due to lack of storage space?
Msg 1101, Level 17, State 12, Line 1
Could not allocate a new page for database 'DBSpaceIssue' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.