You can use Begin Transaction
Block and Rollback - Commit
as shown below:
BEGIN TRANSACTION
INSERT INTO YourTable VALUES(1), (2);
ROLLBACK TRANSACTION;
INSERT INTO YourTable VALUES(3),(4);
SELECT [value] FROM YourTable;
DROP TABLE YourTable;
COMMIT TRANSACTION;
and also if you want to do some actions (DDL commands or DML commands) you can turn off Auto commit
First, create a new query page and then, from the menu items
: Query
\ Query options
Set IMPLICIT_TRANSACTIONS to True

And whenever you did your job, either you can commit your transactions or rollback by commit \ rollback
command or by closing page and confirm\reject
the transactions
But after that, if your transactions applied to your DB and tables,
You can rollback drop table
or truncate table
with the Microsoft SQL recovery
tool - EaseUS MS SQL Recovery
you will be able to recover the truncated table or recover the table after DROP. EaseUS MS SQL Recovery is a powerful tool to recover deleted or corrupted SQL database data. It can restore deleted SQL data in most situations and repair the corrupted database (the MDF
and NDF
files).