Hi all,
I'm doing my very first steps with DB2 programming, so please forgive
me my stupid question.
I try a very simple first db-access using embedded sql with plain
C-code (MS-VC++ on windows). I did a simple
EXEC SQL SELECT COUNT (*)
INTO :CNT
FROM TESTTAB;
The prep and bind on db2 has no errors, the C-code compiles and links
errorfree, too.
When running the program, I get a code -1024 (not connected?). What
have I to do to run the code? I tried a db2logon in the command
window first, but this did not help.
Please help me.
Regards,
Gerd
I'm doing my very first steps with DB2 programming, so please forgive
me my stupid question.
I try a very simple first db-access using embedded sql with plain
C-code (MS-VC++ on windows). I did a simple
EXEC SQL SELECT COUNT (*)
INTO :CNT
FROM TESTTAB;
The prep and bind on db2 has no errors, the C-code compiles and links
errorfree, too.
When running the program, I get a code -1024 (not connected?). What
have I to do to run the code? I tried a db2logon in the command
window first, but this did not help.
Please help me.
Regards,
Gerd
Comment