4
Reply

Can you recover truncated data in SQL SERVER?

Rohit Kumar

Rohit Kumar

Dec 02, 2012
9.8k
0

    While database is in full recovery mode, it can rollback any changes done by DELETE using Log files. TRUNCATE can not be rolled back using log files in full recovery mode.DELETE and TRUNCATE both can be rolled back when surrounded by TRANSACTION if the current session is not closed. If TRUNCATE is written in Query Editor surrounded by TRANSACTION and if session is closed, it can not be rolled back but DELETE can be rolled back.

    Naveen Bisht
    March 06, 2013
    0

    Email me your complete system details

    Malik Murad Al Ali
    December 16, 2012
    0

    Possible when session is not closed.. If Session is closed means it not. BEGIN TRAN TRUNCATE TABLE TableName -- Following SELECT will return TestTable empty SELECT * FROM TableName -- Following SELECT will return TestTable with original data ROLLBACK

    sarath kumar
    December 15, 2012
    0

    we can deallocate the truncate data in sql server

    swayanajyoti pati
    December 13, 2012
    0