Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to diagnose SQLAllocHandle function's error

Status
Not open for further replies.

goudarc

Programmer
Joined
May 17, 2001
Messages
1
Location
US
I have an interesting situation.

I am trying to compile and run simple DB2 database connection sample program. I am able to compile and run that sample program.

But, I am getting an error from SQLAllocHandle function that is used in the begining of that sample program to allocate the environment handle. I don't know how to diagnose this. The exact return value of this function, that I am getting is SQL_ERROR i.e. -1.

Can anybody help me please ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top