Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003

    Unanswered: SQLALLOCHANDLE Problem

    I am new to DB2 database programming. I am using a test DB2 database that I created and testing the runGseDemo Files given in the "C:\Program Files\IBM\SQLLIB\samples\spatial" folder. I have included runGseDemo.c, samputil.c, samputil.h, and the lib files db2api.lib, db2apie.lib, db2cli.lib in the "C:\Program Files\IBM\SQLLIB\lib" folder. There is an error while executing the statement,
    rc = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
    rc returns SQL_Error. I am using Visual Studio 6.0 and I have also given the direct path for the include files in the folder "C:\Program Files\IBM\SQLLIB\include". Can u please give me a pointer as to why I am getting this error.

  2. #2
    Join Date
    Oct 2003
    This is the error that I got when i ran that program.
    ==========> Initializing the Spatial Extender runGseDemo program ...
    <========== Fail to allocate hdbc(database) handle=============>.

    >Terminating ....
    >--- ERROR -- RC= -1 Reported from c:\program files\ibm\sqllib\samples\spatial\s
    amputil.c, line 186 ------------
    Native Error Code: 0
    [Microsoft][ODBC Driver Manager] Function sequence error
    Press any key to continue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts