Skip to main content

Problem:

db2Initialize call failed with = -0000004904

**    External Compiler Module message

**    DB0100 SQL4904N  The pointer to parameter "piPidLength v95" of

**    function "sqlainit" is not valid.

when working against DB2 Version 9.5.  

Compiling with the DB2 directive returns "critical errror - DB2Initialize API not found".

Compiling with the DB2 directive returns "DB00010 DB2 rejected an unspecified option"

Resolution:

The error regarding piPidLength is resolved in Net Express and Server Express 5.0 WP4.

Generally, if you receive errors regarding DB2Initialize, you will need to compile your application with the DB2(UDB-VERSION=x) compiler directive, where x should be :

V8 : DB2 v8.x

V9 : DB2 v9.1

V95 : DB2 v9.5

You can determine the version of the DB2 client software by invoking

db2level

Old KB# 2290