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.

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

of <strong>DB2</strong> CLI driver<br />

• Can be used <strong>with</strong> .NET Framework Version 1.1, 2.0,<br />

or 3.0.<br />

OLE DB .NET Data provider<br />

(not recommended)<br />

• Uses IBM <strong>DB2</strong> OLE DB Driver (IBMDA<strong>DB2</strong>).<br />

• It has same keyword support and restrictions as that<br />

of <strong>DB2</strong> OLE DB driver<br />

• Can be used only <strong>with</strong> .NET Framework Version 1.1,<br />

2.0, or 3.0.<br />

<strong>DB2</strong> .NET Data provider<br />

(recommended)<br />

• Extends <strong>DB2</strong> support for the ADO.NET interface.<br />

• The <strong>DB2</strong> managed provider implements the same<br />

set of standard ADO.NET classes and methods<br />

Table 14.3 - ADO.NET data providers<br />

14.3.7 PHP<br />

• It is defined under IBM.DATA.<strong>DB2</strong> namespace.<br />

• Can be obtained by downloading any of:<br />

- Data Server Driver for ODBC, CLI, and .NET<br />

- IBM Data Server Runtime Client<br />

- <strong>DB2</strong> Data Server<br />

PHP Hypertext Preprocessor (PHP) is an open source, platform independent scripting<br />

language designed for Web application development. It can be embedded <strong>with</strong>in HTML,<br />

and generally runs on a Web server which takes the PHP code and creates Web pages as<br />

output.<br />

PHP is a modular language. You can use extensions to customize the available<br />

functionality. Some of the most popular PHP extensions are those used to access<br />

databases. IBM supports access to <strong>DB2</strong> databases through two extensions:<br />

• ibm_db2: The ibm_db2 extension offers a procedural application programming<br />

interface to create, read, update and write database operations in addition to<br />

extensive access to the database metadata. It can be compiled <strong>with</strong> either PHP 4 or<br />

PHP 5.<br />

• pdo_ibm: The pdo_ibm is a driver for the PHP Data Objects (PDO) extension that<br />

offers access to <strong>DB2</strong> database through the standard object-oriented database<br />

interface introduced in PHP 5.1. It can be compiled directly against <strong>DB2</strong> libraries.

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

Saved successfully!

Ooh no, something went wrong!