在SQL Server 2012中检索已删除的行?

编程入门 行业动态 更新时间:2024-10-26 14:39:19
本文介绍了在SQL Server 2012中检索已删除的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我从SQL Server 2012数据库中删除了一些表行。我有办法以某种方式取回这些吗?如果是,请解释如何做到这一点。 谢谢

I have deleted some table rows from a SQL Server 2012 database. Is there a way for me to get these back somehow? If yes, please explain how to do that. Thanks

推荐答案

你可以选择一些选项尝试。 如果你有备份,你可以执行备份恢复,如描述此处。但是,没有备份就不那么容易了。您可以尝试阅读SQL事务日志,但只有当您的数据库处于完全恢复模式时才能这样做。 您可以使用未记录的函数手动读取事务日志DBCC LOG或fn_dblog。请查看此主题以获取更多详细信息: http:// stackoverflow。 com / questions / 9014531 / read-sql-server-transaction-log 第二个选项是使用某些第三方交易日志阅读器,例如 ApexSQL日志。 另一种选择是使用时间点恢复,但它会撤消您可能想要的所有其他交易保持。 There are some options you could try. If you have backups, you can perform a backup restore like described here. However, without backups it’s not that easy. You can try reading SQL transaction log, but you can do that only if your database was in full recovery model. You can read transaction log manually by using undocumented functions like DBCC LOG or fn_dblog. Look at this thread for more details: stackoverflow/questions/9014531/read-sql-server-transaction-log Second option is using some third party transaction log readers, e.g. ApexSQL Log. Another option is to use point in time recovery, but it would undo all other transactions you might want to keep.

更多推荐

在SQL Server 2012中检索已删除的行?

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

发布评论

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

>www.elefans.com

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