16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

On Success On Error Result<br />

Chapter 5 – Creating SQL and XQuery scripts 181<br />

script<br />

Commit on completion of<br />

script<br />

Roll Back on completion<br />

of script<br />

Roll Back on completion<br />

of script<br />

Stop and Roll<br />

Back<br />

Continue<br />

Stop and Roll<br />

Back<br />

successful, all statements are committed to<br />

the specified database.<br />

If an error occurs, the script will stop<br />

running, and any statements that were<br />

successfully run are committed to the<br />

specified database.<br />

If all of the statements in the script are<br />

successful, all statements are committed to<br />

the specified database.<br />

If an error occurs, the script will stop<br />

running, and all successful statements are<br />

rolled back.<br />

If all of the statements in the script are<br />

successful, all statements will be rolled<br />

back.<br />

If an error occurs, the next statement in the<br />

script will run, and any successful<br />

statements are rolled back.<br />

If all of the statements in the script are<br />

successful, all statements will be rolled<br />

back.<br />

If an error occurs, the script will stop<br />

running, and all successful statements are<br />

rolled back.<br />

Table 5.1 – Choosing success and error behavior in JDBC<br />

5.5.2 Command line processor result preferences<br />

Table 5.2 describes the behavior when statements are run successfully or encounter errors<br />

in the command line processor.<br />

On Success On Error Result<br />

Commit after each<br />

statement<br />

Commit after each<br />

statement<br />

Continue<br />

Stop<br />

If a statement is successful, it is committed<br />

to the specified database.<br />

If an error occurs, the next statement will<br />

run.<br />

If a statement is successful, it is committed<br />

to the specified database.<br />

If an error occurs, the script stops running.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!