If you still have transaction in open state, you can rollback the Updated data.
i.e.
BEGIN TRANSACTION
--Update statement
Now the transaction is in open state. You can undo the transaction by using rollback statement....
BEGIN TRANSACTION
--Update statement
Rollback Transaction
If you want to close the transaction by saving updated data to database, you can do as follows:
BEGIN TRANSACTION
--Update statement
commit Transaction
NOTE: If you doesn't have transaction open and the data updated to database accidentally, then you must restore a database backup. If you're using Full backups, then you should be able to restore the database to a specific point in time.
Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif
Vishalneeraj-24503, if this helps please login to Mark As Answer. | Alert Moderator