更新查询回滚

编程入门 行业动态 更新时间:2024-10-28 01:17:21
本文介绍了更新查询回滚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在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.

更多推荐

更新查询回滚

本文发布于:2023-10-19 19:31:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508544.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!