Sql Server 2000 中的回滚和更新命令 [英] Rolling back and update command in Sql Server 2000

查看:85
本文介绍了Sql Server 2000 中的回滚和更新命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地使用了更新命令来更新 Sql Server 2000 数据库中的整个表.我实际上是想只更新一行.现在所有 2000 行都包含更新.有没有办法回滚这个更改?

I have used an update command to update the whole table in an Sql Server 2000 database by mistake. I was actually meaning to update just one row. Now all the 2000 rows contain the update. Is there a way to roll back this change?

推荐答案

除非您通过显式事务开始更新,否则不会.

Unless you started your update with an explicit transaction, no.

但是,您或许可以使用 日志救援.我不确定在这种情况下这是否可以帮助您.

However, you might be able to use Log Rescue . I'm not sure though if this can help you in this case.

更好的选择可能是将备份恢复到新数据库并合并旧表和新表.

A better option might be to restore a backup to a new database and merge the old and new tables.

这篇关于Sql Server 2000 中的回滚和更新命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆