Question

I drop a table in SQL Server using this code:

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.

Was it helpful?

Solution

If DROP TABLE was executed inside the Transaction and it has not been committed then you can ROLLBACK. 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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top