16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14.3 Client-side development<br />

Chapter 14 - Introduction to <strong>DB2</strong> Application Development 243<br />

As the name suggests, in client-side development, the application developers code their<br />

programs on a client and then connect and access the <strong>DB2</strong> database using the application<br />

program interfaces (APIs) that are provided <strong>with</strong> <strong>DB2</strong>. In this section we discuss:<br />

• Embedded SQL<br />

• Static SQL vs Dynamic SQL<br />

• CLI and ODBC<br />

• JDBC, SQLJ and pureQuery<br />

• OLE DB<br />

• ADO.NET<br />

• PHP<br />

• Ruby on Rails<br />

• Perl<br />

• Python<br />

14.3.1 Embedded SQL<br />

Embedded SQL applications are applications where SQL is embedded into a host<br />

language such as C, C++, or COBOL. The embedded SQL application can include static<br />

or dynamic SQL as described in the next section. Figure 14.2 shows how an embedded<br />

SQL application is built.<br />

Figure 14.2 - Building embedded SQL applications

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

Saved successfully!

Ooh no, something went wrong!