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 > SQLError -808

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-03, 00:58
minghuietact minghuietact is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Question SQLError -808

I am using a c++ program to call some precompiled package (Embedded SQL) to connect to db2, do some selection, disconnect.

When I was using DB2 v5, the program was okay. While when I use verison 8.1, My program is like this

attach ctx (call API sqleAttachToCtx)
connect to table
do selection
disconnect
deattach ctx (call API sqleDetachFromCtx)

attach ctx
connect to table ---------------> -808
....


That means for 1st round of attaching, connecting, disconnecting and deattaching, it works ok. But for 2nd round, I get the -808 error when trying to connect to database. If I elimiate all the attach/deattach ctx statements, it will work. Please help.
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