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.

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

5.1 Creating SQL and XQuery scripts: The big picture<br />

In a nutshell, SQL and XQuery scripts assist <strong>with</strong> data development, which involves the<br />

development, testing and deployment of database objects. You can store these scripts in<br />

different types of data projects <strong>with</strong>in the <strong>Data</strong> Project Explorer view. The primary projects<br />

to store SQL and XQuery scripts in <strong>Data</strong> <strong>Studio</strong> are the data development project and the<br />

data design project. Figure 5.1 shows both projects.<br />

.<br />

Figure 5.1 – Use data design and data development projects to store SQL scripts<br />

5.1.1 Creating a data development project: SQL and XQuery scripts<br />

Previously, we described the many perspectives available in <strong>Data</strong> <strong>Studio</strong>, including the<br />

<strong>Data</strong> perspective. In this chapter, we will use the <strong>Data</strong> perspective <strong>for</strong> our data<br />

development tasks. We will also focus on SQL scripts.<br />

The first step is to create a data development project. You use data development projects<br />

to develop and test database artifacts such as PL/SQL packages, SQL scripts, stored<br />

procedures, user-defined functions, data web services, and XML documents. Related<br />

artifacts such as web Services Description Language (WSDL) documents, XML schemas,<br />

XML style sheets, and XML mappings are all stored in the project.

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

Saved successfully!

Ooh no, something went wrong!