If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQLALLOCHANDLE Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-03, 14:40
kangan kangan is offline
Registered User
 
Join Date: Oct 2003
Posts: 17
SQLALLOCHANDLE Problem

Hi,
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.
-Thanks
-Kangan
Reply With Quote
  #2 (permalink)  
Old 11-11-03, 15:11
kangan kangan is offline
Registered User
 
Join Date: Oct 2003
Posts: 17
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 ------------
SQLSTATE: HY010
Native Error Code: 0
[Microsoft][ODBC Driver Manager] Function sequence error
>--------------------------------------------------
Press any key to continue
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On