loop that executes all .SQL files in a folder

  • Thank you very much. This was very helpful and informational.

  • Is there any way to break out of the loop if one of the scripts fails?

  • nice forum...

    great help!!!!

  • scott.gach-667672 (2/2/2009)


    Is there any way to break out of the loop if one of the scripts fails?

    Add -b parameter, check ERRORLEVEL and use GOTO after each file is processed may do the trick.

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 4 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic. Login to reply