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 will be query used to get the list of triggers in a database?

954


What is the cartesian product of table?

930


What is the difference RDBMS and Graph Database?

1004


What is partition index in sql server?

1047


How can I know what locks are running on which resource?

898


How to run queries with sql server management studio express?

1018


What is a document index?

977


Write the queries for commands like Create Table, Delete table, Drop Table etc.

1031


What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

1988


Does partitioning ssd reduce performance?

846


What is SQL Azure Fabric?

108


What are the properties of the relational tables?

829


Can an automatic recovery be initiated by a user?

942


Can sql server be linked with other servers like oracle?

903


How many types of schemas are there?

971