Question: I'd like to execute a batch sql statement through SQL Server management studio multiple times and avoid using a loop statement or other similar constructs . I'm doing some testing requiring multiple returns of recordsets and would like a simple approach - for ad hoc queries Answer: Looking at the SQL Server documentation for the sql server utility GO - indicates the syntax is GO [count]. This means the queries triggered as part of the batch executed will execute the amount of times listed after GO. By default it's 1 , but if you specify a positive integer -... Read more →