Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

After using delete statement in sql query to delete some
records...to retrieve the deleted records we can get using
rollback command but till that where it stores means
particular location name i need....(after deleting and
rollback )

Answer Posted / imran

SQL Server keeps log for each deleted records. you can
query these logs via '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.

Given below is the article that can help you to recover the
deleted records in the same way defined above.

http://raresql.com/2011/10/22/how-to-recover-deleted-data-
from-sql-sever/

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what's the information that can be stored inside a bit column? : Sql server database administration

1035


How to invoke a trigger on demand?

1092


How to create a login account in ms sql server to access the database engine using "create login" statements?

1146


What is your recommendation for a query running very slow? : sql server database administration

1047


What is the tcp/ip port on which sql server runs?

1161


What is the use of nvl work?

1004


What is explicit mode in sql server?

1062


What are the difference between “where” and “having” clause in sql server?

1072


What does man by sql wildcard characters in sql server?

1062


How much is a sql server license?

955


How do you check sql server is up and running?

1001


Explain the working of sql privileges?

1093


How to drop existing indexes in ms sql server?

1072


What are the basic functions for master, msdb, model, tempdb and resource databases?

988


What is tempdb database? : SQL Server Architecture

1198