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 > Multiple Database - SQLCA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-03, 21:27
VijiSeenivasan VijiSeenivasan is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Multiple Database - SQLCA

I am writing embedded VC++ program using DB2 V 8.1.
I need to access two databases in a program. Do I need to maintain a SQLCA area for each database?
Reply With Quote
  #2 (permalink)  
Old 10-06-03, 00:22
neelamchalam neelamchalam is offline
Registered User
 
Join Date: Jul 2003
Location: india
Posts: 15
Re: Multiple Database - SQLCA

Quote:
Originally posted by VijiSeenivasan
I am writing embedded VC++ program using DB2 V 8.1.
I need to access two databases in a program. Do I need to maintain a SQLCA area for each database?
Hi VijiSeenivasan ,

The SQLCA Structure look like following

{
_SQLOLDCHAR sqlcaid[8];
sqlint32 sqlcabc;
#ifdef DB2_SQL92E
sqlint32 sqlcade;
#else
sqlint32 sqlcode;
#endif
short sqlerrml;
_SQLOLDCHAR sqlerrmc[70];
_SQLOLDCHAR sqlerrp[8];
sqlint32 sqlerrd[6];
_SQLOLDCHAR sqlwarn[11];
#ifdef DB2_SQL92E
_SQLOLDCHAR sqlstat[5];
#else
_SQLOLDCHAR sqlstate[5];
#endif
};

and there is no such a need to maintain more than one SQLCA, because it is complete independent Structure which you can Use for more than one Databases.

Regards,
Chalam N
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