• Michael Valentine Jones (8/13/2010)


    It is a way to create an endless loop that you will exit using the BREAK command, instead of when the test condition is true.

    while 1=1

    begin

    <Do something>

    if <some condition is true>break

    <Do something else>

    if <some other condition is true>break

    end

    Actually, I like this explanation better!

    +--------------------------------------------------------------------------------------+
    Check out my blog at https://pianorayk.wordpress.com/