I run a lot of queries that perform INSERT
\'s, insert SELECT
\'s, UPDATE
\'s and ALTER
\'s on tables, and when developing these
Use an SQL transaction to make your changes then back them out.
Before you execute your script:
BEGIN TRANSACTION;
After you execute your script and have done your checking:
ROLLBACK TRANSACTION;
Every change in your script will then be undone.
Note: Make sure you don't have a COMMIT
in your script!