I run a lot of queries that perform INSERT
's, insert SELECT
's, UPDATE
's and ALTER
's on tables, and when developing these queries, the intermediate steps that are run to test that various parts of the query work, potentially change the table or the data within the table.
Is it possible to do a dry run of a query and have SQL Management Studio give you what the results would be, without actually modifying the data or the table structure?
At the minute, I have to back up the database, run the query, if it works, good, if it doesnt, i have to restore the database which can take around a hour and im trying to avoid wasting all this time having to restore databases.