Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 How to recover tables when deleted mistakenly

Author  Topic 

pankaj2910
Starting Member

31 Posts

Posted - 2015-05-06 : 04:11:09
Please help me !!

Unfortunately I've deleted my database all tables but the size of the files(mdf, ldf) is not changed. I want to recover all the tables. Unfortunately, database backup not been taken.
Please help me how to recover the deleted tables without taking any help of any software.

Please please please giving best solution

pankajrocks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-05-06 : 15:34:34
Sorry, but you are screwed given those parameters.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2015-05-07 : 01:41:16
Your only hope is if you or someone else took a local backup - worth checking on the backup history table - http://www.sqlserver-dba.com/2012/06/display-sql-backup-history-for-a-single-database.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2015-05-07 : 05:11:38
Presumably even if in FULL Recovery Model there will be NO Log to (tail) backup UNLESS a Full Backup was taken in the past?
Go to Top of Page

Lincolnburrows
Yak Posting Veteran

52 Posts

Posted - 2015-05-27 : 05:06:40
SQL Server keeps logs for each deleted record. You can query these logs via the fn_dblog SQL Server function.

SELECT [RowLog Contents 0]
FROM sys.fn_dblog(NULL, NULL)
WHERE
AllocUnitName = 'dbo.TableName'
AND Context IN ( 'LCX_MARK_AS_GHOST', 'LCX_HEAP' )
AND Operation in ( 'LOP_DELETE_ROWS' )
;
But this log is in Hex format and you need to convert this Hex format to your actual data.
Go to Top of Page
   

- Advertisement -