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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 How to recover tables when deleted mistakenly
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pankaj2910
Starting Member

India
31 Posts

Posted - 05/06/2015 :  04:11:09  Show Profile  Reply with Quote
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

USA
38200 Posts

Posted - 05/06/2015 :  15:34:34  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 05/07/2015 :  01:41:16  Show Profile  Visit jackv's Homepage  Reply with Quote
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

United Kingdom
22859 Posts

Posted - 05/07/2015 :  05:11:38  Show Profile  Reply with Quote
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 - 05/27/2015 :  05:06:40  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000