Quantcast
Viewing all articles
Browse latest Browse all 15889

How to recover a database when log file is deleted

Hi,

Please I need your help.

It happened that there is a friend who is new to SQL server committed a fatal mistake. He was trying to fix a problem but made ​​a bigger one.  The problem was that the log file is full and consumed all of the available space on the hard drive so he stopped SQL services and delete the database log file manually and addition to that no back up is there for the database.

I tried to help him to recover the database by using the following

sp_attach_single_file_db

DBCC REBUILD_LOG

 

I'm still unable to fix the problem and I don't know which steps needed to recover the database.


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>