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.

182 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

On Success On Error Result<br />

User managed commit Continue If a COMMIT statement is included in the<br />

script, the statement is committed at that<br />

point.<br />

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

run.<br />

User managed commit Stop and Commit If a COMMIT statement is included in the<br />

script, the statement is committed at that<br />

point.<br />

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

running, and any statements that have run<br />

are committed to the specified database.<br />

Table 5.2 – Choosing success and error behavior in the command line processor<br />

environment<br />

5.5.3 SQL Results view<br />

Now that you have explored the Run preferences, you are ready to run your SQL script.<br />

Click the Run SQL button ( ) on the editor toolbar. The script is run against the<br />

database that the script is currently connected to. The progress and results of running the<br />

script are then displayed in the SQL Results view.<br />

Figure 5.31 shows the result of SQL statements <strong>with</strong> JDBC run method and <strong>with</strong> JDBC<br />

preferences in the SQL Results view.

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

Saved successfully!

Ooh no, something went wrong!