16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

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

Appendix C – Up and Running with DB2 Express-C 345<br />

C.8 Basic sample programs<br />

Depending on the programming language used, different syntax is required to connect to a<br />

DB2 database and perform operations. Below are links to basic sample programs which<br />

connect to a database, and retrieve one record. We suggest you first download all the<br />

sample programs in this section:<br />

CLI program<br />

ODBC program<br />

C program with embedded SQL<br />

JDBC program using Type 2 Universal (JCC) driver<br />

JDBC program using Type 4 Universal (JCC) driver<br />

Visual Basic and C++ ADO program - Using the IBM OLE DB provider for DB2<br />

(IBMDADB2)<br />

Visual Basic and C++ ADO program - Using the Microsoft OLE DB Provider for ODBC<br />

(MSDASQL)<br />

Visual Basic and C# ADO.Net using the IBM DB2 .NET Data Provider<br />

Visual Basic and C# ADO.Net using the Microsoft OLE DB .NET Data Provider<br />

Visual Basic and C# ADO.Net using the Microsoft ODBC .NET Data Provider<br />

C.9 DB2 documentation<br />

The DB2 Information Center provides the most up-to-date online DB2 documentation. The<br />

DB2 Information Center is a web application. You can access the DB2 Information Center<br />

online, or you can download and install the DB2 Information Center to your local computer.<br />

Links to the online DB2 Information Center as well as downloadable versions are available<br />

using this link.

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

Saved successfully!

Ooh no, something went wrong!