16.10.2015 Views

Getting Started with IBM Data Studio for DB2

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

248 <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 />

Figure 8.10 – View the stored procedures folder and the routine editor<br />

Note:<br />

For more in<strong>for</strong>mation about using <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> template based routine development,<br />

refer to the following developerWorks article:<br />

http://www.ibm.com/developerworks/data/library/techarticle/dm-<br />

1010devstudioroutines/index.html.<br />

This article uses an earlier version of the Optim Development <strong>Studio</strong> product, but the<br />

in<strong>for</strong>mation is the same <strong>for</strong> <strong>Data</strong> <strong>Studio</strong>.<br />

8.3.3 Deploy the stored procedure<br />

At this point in the stored procedure development process, the stored procedure source<br />

code exists as a file in your workspace. Be<strong>for</strong>e you can run your stored procedure against<br />

your database, you must deploy it to the database server. When the stored procedure is<br />

deployed, the <strong>DB2</strong> database server compiles the source code, and creates a new stored<br />

procedure object in the database <strong>with</strong> the compiled code. If the server cannot compile the<br />

code, the deployment will fail and an error will be returned to the client.

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

Saved successfully!

Ooh no, something went wrong!