Printed 2017/08/22 10:48PM

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-2017 Redgate. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.