Executes a long SQL script that contains batches (GO commands). This code breaks the script into individual commands and captures all execution errors.

If ContinueOnError is false, operations are run inside of a transaction and changes are rolled back. If true commands are accepted even if failures occur and are not rolled back.