本文介绍了更新查询回滚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在sql server 2008中有火更新查询。但是我错过了我在更新查询中遗漏了一些东西。现在我想要撤消该查询,那么我应该怎样做才能回滚我的数据。 请帮帮我 thaxx for advance
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
推荐答案您好, 您需要在ado中维护交易,请通过URL 在ADO.NET中使用事务 [ ^ ] 最好的问候 Muthuraja Hi, You need to maintain the transaction in ado, please go through the URL Using Transactions in ADO.NET[^] Best Regards Muthuraja
我建议先阅读这个帖子: stackoverflow/questions/721471/how-可以-I-回滚一个更新查询功能于平l-server-2005 如果你有一个完整的备份,你需要做的就是将它恢复到一个新的数据库并导入到你的数据库从那里。要从事务日志中恢复,但为此需要使用一些事务日志阅读器。 您还可以使用未记录的命令,如DBCC Log和fn_dblog。请注意,这些非常复杂。 I suggest reading this thread first: stackoverflow/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.
更多推荐
更新查询回滚
发布评论