As you know 'GO' is a T-SQL batch seperator command and it is not
T-SQL statement.It is a command recognized by the 'sqlcmd' and
'osql' utilities and SQL Server Management Studio Code editor.
There is nice feature that exists in SQL 2005 and above:
Where [number] is a positive integer.
For example,the below command will be executed 5 times:
SELECT * FROM sys.dm_os_performance_counters
In Fact, all statements before the last GO and the start
of the ad hoc session or previous 'GO' statement will be executed
specified number of times.
The statement can also be Stored Procedure or any T-SQL command: