简体   繁体   English

将表放在SQL Server中后如何恢复表

[英]How to recover table after drop it in SQL Server

I drop a table in SQL Server using this code: 我使用以下代码在SQL Server中删除了一个表:

DROP TABLE temp

Now, I try to recover this table, but I don't know a solution. 现在,我尝试恢复该表,但是我不知道解决方案。

Please, tell me a solution for this problem if you know. 如果您知道,请告诉我有关此问题的解决方案。

If DROP TABLE was executed inside the Transaction and it has not been committed then you can ROLLBACK. 如果DROP TABLE在Transaction中执行,但尚未提交,则可以回滚。 But if it isn't, then you need backup of your database. 但是,如果不是这样,则需要备份数据库。 Recover your table from database. 从数据库中恢复表。 If backup is also not present, then search for 3rd party recovery tools. 如果也没有备份,则搜索第三方恢复工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM