January 30, 2007 at 7:13 pm
Hi,
It is know that using transaction, we can un-do any update/delete/insert.
However, we want to be able to un-do any user update/delete/insert statement
even after it is done a few days ago.
I come across some third-party tool that can generate un-do statement
for the last action(update/delete/insert) done, is there any way to do similar stuff
in sql server 2000 or 2005 ?
January 30, 2007 at 8:57 pm
Not after a couple of days... unless you have a really good audit log.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2007 at 7:42 am
A third party tool will allow you to generate the reversing entry if you still have the logs from a few days ago.
The problem is that other things outside the transaction could change because of the transaction. Perhaps this is a deposit that you want to reverse in a bank situation. However since the deposit, other withdrawals have occurred, which would result in a negative balance if you reverse the deposit.
This happens in the real world and when it does you get hit with a note that you owe the bank the money + service charges. In supply chain, inventory, etc. situations, this can cause problems if you try to undo somethign without knowing the impact.
January 31, 2007 at 8:28 am
Yep... some serious truth in that... the best accounting procedure is, of course, don't make mistakes. The second best is don't try to roll back anything... issue a credit!
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply