Deleted SQL Server 2005 database

35 pts.
Tags:
Backup
Backup and Recovery
SQL Server 2005
Hi, actually I know the importance of backup, but I don't have the back up in any-how condition. Accidentally the database deleted by me. How do I recover it? How to use the transaction.log file to restore deleted database in SQL Server 2005?

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you do not have a full backup to start the restore process with there is no way to recover the database. Once the database is deleted it is deleted.

If you have an older full backup and the transaction log backups then you can restore the full backup, then apply the transaction log backups to it. However this requires that you have all the transaction log backups from the time the full backup was taken until now. If any backups are missing or damaged then you can not go any further forward than that.

*****************************************************************

well you can do it with a backup and transaction logs but there are other ways.

There is quite a lot that can be done to recover deleted SQL databases.
I’ll assume you are using something like Windows server and hence an NTFS file system, if that’s the case doing a scan of the file system for deleted files is quite easy. Once a file is deleted in NTFS the record in the file system and the actual area the data takes up is considered unallocated, so the more files you write to the volume after its deleted the greater the chance the data and its file system record will be overwritten.

If the files record is still there you can copy out the data but the database still might have been overwritten so will need to be checked for errors.
If there is no longer a file record for the database the only other option is to scan the data area for the SQL information. At a low level SQL data is stored in pages and it’s possible to scan for these and put the database back together.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following