Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details

Posted on 2014-12-09
13
Medium Priority
?
36 Views
Last Modified: 2016-06-16
Hi ..
I am new in DBA side ..
can you please any one tell me how can i solve below error ..?
this is in my one of live database issue
"Msg 945, Level 14, State 2, Line 2
Database 'BD_NAME' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details."

I have tried with DBCC command & also take it offline & online too ..
but while taking online it with same error ..
database status = 'Recovery Pending'

Awaiting for quick help OR response.
0
Comment
Question by:Ashvin Ajagiya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
13 Comments
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40488643
The database you are trying to query isn't accessible. It's in recovery status. Check the error log to see how much percentage is already recovered so you may know how much you need to wait to the database being available.
0
 

Author Comment

by:Ashvin Ajagiya
ID: 40488665
this was last 2 days issue ...
i have tried my self but i can able to recover it ..
mdf file size is 6.14 GB but log file .ldf file size is more than 16 GB.

can you please tell me how can i get back database in online status. ?
it is not accessible.

it show me in 'recovery pending' status not 'in recovery' status.
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40488675
First of all the database only goes to that state if something interrupted abruptly (server crash, disk loss or someone stopped inadvertently the SQL Server instance).
If it's already like that for 2 days means that some error is preventing the database to come online. I would check for disk issues.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

Author Comment

by:Ashvin Ajagiya
ID: 40488761
Thanks  Mr.Vitor,

Can you please tell me what should i need to do to get back that database in Online ..?
should i need to  restore backup or still anything else script Or T-SQL code by using them i can get back that DB in online state ..?
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40488768
Did you check the disk where it's supposed to be the data and log files?
0
 

Author Comment

by:Ashvin Ajagiya
ID: 40488787
yes, i have checked disk & this is good & both mdf & ldf files are there , i think only Problem with log file of this database .
but i can getting how to handle it ..
i had try to add new log file but i can't able.

any quick help suggestion ..?
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40488803
i had try to add new log file but i can't able.
Don't do that. Also don't restart SQL Server or even the server.
I just don't know what you did in these last 2 days so I don't even know the state of your databases.

From when are the last backups that you have?
0
 

Author Comment

by:Ashvin Ajagiya
ID: 40488808
From last 2 days , it shows me as in (recovery pending) status.
& can't accessible ..?

Like  " BD_name (Recovery Pending) "
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40488816
I mean backup (BAK files). Do you perform regular backups, right? Where do you store it?
0
 

Author Comment

by:Ashvin Ajagiya
ID: 40488843
yes , I have regular backup plan means maintenance plan to take full backup .
& it's stored in same drive in different folder .
but it is 2 day ago when last back was run.

then after database in (recovery pending) mode.
so, backup was not run.
0
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 40488863
If the database is on recovery pending status since last 2 days for sure the backup wouldn't run, so you have the last good known database status in your backup. You need to restore it to solve your problem.
0
 

Author Comment

by:Ashvin Ajagiya
ID: 40488891
Thanks vitor .

I will do that.
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question