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.

159<br />

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

In this chapter, we will describe some basic data development tasks using SQL and<br />

XQuery scripts in <strong>Data</strong> <strong>Studio</strong>.<br />

The SQL and XQuery editor helps you create and run SQL scripts that contain SQL and<br />

XQuery statements. This chapter describes how to use some of the features of the editor to<br />

help you develop your SQL scripts more efficiently. The features in the editor are available<br />

<strong>for</strong> all the data servers that are supported in the workbench, except <strong>for</strong> any that are<br />

specifically noted as not supported. The editor includes the following capabilities:<br />

<br />

<br />

<br />

<br />

<br />

Syntax highlighting<br />

SQL <strong>for</strong>matting<br />

Content assist<br />

Statement parsing and validation <strong>with</strong> multiple version-specific database parsers<br />

Semantic validation<br />

You can run scripts serially against multiple database connections and choose an<br />

execution environment, such as JDBC or the command line processor (CLP). The editor<br />

provides you <strong>with</strong> flexibility by letting you change special registers to modify the current<br />

schema and current path. In addition, you can export SQL scripts from and import SQL<br />

scripts to the editor.<br />

Through the editor, you can also schedule scripts <strong>for</strong> execution using the Job Manager<br />

described in Chapter 6 and access the query tuning capabilities of <strong>Data</strong> <strong>Studio</strong>, described<br />

in Chapter 7.

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

Saved successfully!

Ooh no, something went wrong!