Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have fire update query in sql server 2008. but by mistake i miss some thing in update query .Now i want to undo that query so what should i do for roll back my data.


Please help me

thaxx for advance
Posted

Hi,

You need to maintain the transaction in ado.net, please go through the URL

Using Transactions in ADO.NET[^]

Best Regards
Muthuraja
 
Share this answer
 
I suggest reading this thread first:
http://stackoverflow.com/questions/721471/how-can-i-rollback-an-update-query-in-sql-server-2005

If you have a full backup, all you need to do is to restore it to a new database and import to your database from there. To recover from transaction log but for that you will need to use some transaction log reader.

You can also use undocumented commands such as DBCC Log and fn_dblog. Note these are pretty complex.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900