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.

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

Figure 5.11 – A sample data design project<br />

Figure 5.11 also shows that data design projects contain sub-folders that you can use to<br />

create data diagrams and data models. In this chapter we will focus on just the SQL Scripts<br />

folder.<br />

5.1.3 Creating new SQL and XQuery scripts: Using <strong>Data</strong> Projects<br />

<strong>Data</strong> <strong>Studio</strong> provides development of SQL scripts <strong>for</strong> all database servers it supports. In<br />

this section, you will learn how to create a new SQL script.<br />

To create a new SQL script, right-click the SQL Scripts folder and select New -> SQL or<br />

XQuery Script, as shown in Figure 5.12.<br />

Figure 5.12 – Creating a new SQL or XQuery Script<br />

Note:<br />

You can develop XQuery scripts when you connect to a server <strong>with</strong> XQuery support,<br />

such as <strong>DB2</strong>.<br />

When you select SQL or XQuery Script, the New SQL or XQuery window opens, as shown<br />

in Figure 5.13.

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

Saved successfully!

Ooh no, something went wrong!