http://www.sqlservercentral.com/blogs/andy_warren/2007/06/18/go-more-than-once/

Printed 2014/10/25 08:52AM

GO More than Once?

By Andy Warren, 2007/06/18

SSC had a fairly routine article up recently about The GO Command the Semi Colon Terminator which I read, and when I followed along on the associated discussion came across an interesting comment that noted in SSMS you can add an integer param to GO to have it execute the batch multiple times. To see in action, try this:
select newid()
go 5
Not sure what I'll use it for yet, of if ever, but don't know that I would have learned about it any other way than just my daily keep up with the tech world reading.
Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.