DB2 Access Example
General Information
The database name on this server is E105098D
There are two main ways of connecting to DB2 using the db2_connect() function.
- Run in the PHP process
- Do not specify the userid or password.
- Database name is optional.
- The user profile used by PHP (NOBODY) must have access to the tables,
which means that any PHP process can access the data.
- This is the faster method.
- Run in server mode
- Specify the database, userid, and password.
- The userid specified must have access to the tables.
Demonstration Page
There is a demonstration of DB2 access here.