Home » Blog » Topic » How to Recover Deleted Records from SQL Table?

How to Recover Deleted Records from SQL Table?

Henry Davidson ~ Modified: June 26th, 2015 ~ ~ 1 Minute Reading

Home Forums How to Recover Deleted Records from SQL Table?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #220 Score: 0
    Henry Davidson
    Moderator
    31 pts

    I am using SQL Server 2008, I had a table with the name dbo.JJ_IESER_Header. I don’t know how but some of the important records got deleted from it, I didn’t do it. Now I want to recover it, so can anyone suggest me a secured solution to recover the deleted records?

    Also I want to know is there any way to find out when it was last deleted or modified according to query.

    #224 Score: 0
    Christopher Rigaud
    Participant

    You can try 3rd party tools available in the market, which will allow you to recover your deleted records from sql server database file.

    I can suggest you a sql recovery tool from http://www.systoolsgroup.com/sql-recovery.html

    For further drilling down to know who deleted and who modified the database records, you need to take help of SQL Server log files. Logs files are stored in same folder as of master.mdf and having file extension as .ldf. Get a sql server log file reader to view logs and see who deleted and at what time.

    Other tool to view sql server log files to view sql server database operations like modifying, deleting or adding can be downloaded from http://www.systoolsgroup.com/sql-log-analyzer.html

    #1697 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    You can use this sample query to find out when the table was last updated.

    SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,*
    FROM sys.dm_db_index_usage_stats
    WHERE database_id = DB_ID( 'DB_name')
    AND OBJECT_ID=OBJECT_ID('Table_name')
    
    #2082 Score: 0
    Lincoln Burrows
    Moderator
    16 pts

    What is gone is gone
    Always use BEGIN TRANSACTION whenever running a update or delete, then COMMIT if successful or ROLLBACK if not.

    #2099 Score: 0
    Henry Davidson
    Moderator
    31 pts

    Thanks all for your help
    I have recovered my deleted records successfully by using SysTools SQL Recovery.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.