[unixODBC-support] RE: DB2 connect issue

Matthew Beck matthew.beck at pmigroup.com
Mon Nov 7 06:06:50 GMT 2005

With two slightly different installations, I received the following
messages between them using test user or db2inst1:

[ISQL]ERROR: Could not SQLConnect


[ISQL]ERROR: Could not SQLAllocConnect

I'm going to review the sqltypes.h and sql.h files to see if I can track
down a solution.

Matthew Beck
PMI Mortgage Insurance Co.
Infrastructure and System Operations
-----Original Message-----
From: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Sunday, November 06, 2005 1:03 PM
To: Support for the unixODBC project
Subject: Re: [unixODBC-support] RE: DB2 connect issue

Matthew Beck wrote:

>Next error:
>bash-2.03$ ./isql -v DB uid pwd
>[ISQL]ERROR: Could not SQLAllocConnect
>I'm having difficulty tracking down a solution on this one.
This could be as the result of the last fix.

I am not sure, but as the driver manager uses the handle to point to its

data structures, calling it a int instead of a void * may well preevnt 
it from working.

I think (though will have to look) that it needs the driver handle 
converting to a int in the driver manager structures, not all handles 
converting to a int.

unixODBC-support mailing list
unixODBC-support at easysoft.com

More information about the unixODBC-support mailing list