Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
scottichrosaviakosmos
Yak Posting Veteran
66 Posts |
Posted - 2010-07-26 : 06:27:07
|
is it possible to undo an update statement which has updated my table .i was not useing any transaction but i directly updated it.now i want to recover old data and i dont have back also.scoo |
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2010-07-26 : 06:32:55
|
If you have a backup from before you ran the update, you can recover that, but even if you do, any changes between the last backup and your update will be lost (unless you take regular log backups).If not, then see it as a lesson on why you should always use BEGIN TRANS before an ad-hoc update.EDIT: oh, missed the bit where you said you didn't have a backup. Oh well, there is another lesson, always have backups. If you learn nothing else, learn how to take backups and drill it into your brain.. |
|
|
slimt_slimt
Aged Yak Warrior
746 Posts |
Posted - 2010-07-26 : 06:34:17
|
if you have backup it can be done. If you were doing update directly on performance-live database and there is no logging/backup, there is no magical undo. |
|
|
Sachin.Nand
2937 Posts |
Posted - 2010-07-26 : 06:43:28
|
What was the Update statement?If it was some easy update like replcacing "NULL values" with "some values",you can rewrite the update to set all those values to NULL again.If it cannot be done that easily then without any BackUp you are at dead end !!!Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless. PBUH |
|
|
|
|
|