Snowflake Vs MS-SQL - Part 11 - Undrop - Recover objects

   


Undrop - Recover objects


MS-SQL Server 

When you are working on a critical database and someone drops one of the tables by mistake, it is a tough task to recover the deleted table. 

There could be multiple options to recover the deleted table.

  1. If you have taken the copy of the table then you can rename it and recover it. But if it is a transactional table then there is high chance latest records may not be present and you can lose them.
  2. If you are taking back-ups on short intervals then you have to restore that table.

Also, there could be other alternatives. 

In each, recovering the deleted table definitely, it is time-consuming.


In Snowflake we can achieve this by using the simple command - Undrop.



Note:
  1. A table can be restored only if the object was deleted within the Data Retention Period.
  2. If a table with the same name already exists, an error is returned.

For more details, you can refer to the following LINK.



Yogesh Shinde

LinkedInProfile

<<< Back Next >>>

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP