
Home »
Question & Answers » The error is generated in database. How to check db space mssql
The error is generated in database. How to check db space mssql ?
I was working on a databse which is called as emergencydemo. I saw that there was no log file in EMERGENCY mode and the salaries table is corrupt. I am worried that how I will maintain the data. The error was:
ALTER DATABASE emergencydemo SET ONLINE;
GO
File activation failure. The physical file name \"C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\emergencydemo_log.LDF\" may be incorrect.
The log cannot be rebuilt because the database was not cleanly shut down.
Msg 945, Level 14, State 2, Line 1
Database \'emergencydemo\' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Failed to restart the current database. The current database is switched to master.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
After that when I expected that not to do work, the emergency mode repair run:
DBCC CHECKDB (emergencydemo, REPAIR_ALLOW_DATA_LOSS) WITH NO_INFOMSGS;
GO
Msg 945, Level 14, State 2, Line 1
Database \'emergencydemo\' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Now I am middle in the problem. What to do to check db space mssql.
Know the Answer? Share it...
The error is generated in database. How to check db space mssql ?
Related Question