Hidden Features of SQL Server

In Management Studio, you can put a number after a GO end-of-batch marker to cause the batch to be repeated that number of times:

PRINT 'X'
GO 10

Will print ‘X’ 10 times. This can save you from tedious copy/pasting when doing repetitive stuff.

Leave a Comment