Hi Ralf,

> I'm currently accessing SAPDB via ODBC from within my C++ 
> application under 
> Linux. How can I read/write long values? 


Please look at the ODBC documentation (e.g. at Microsoft).
The description of SQLPutData contains an example of
using long columns.

Roughly for an insert it is:

SQLPrepare (..., "insert into ... (?, ... ", ...);

SQLBindParameter (..., &lengthOfColumn);

lengthOfColumn = SQL_LEN_DATA_AT_EXEC (0);

SQLExecute (...);

while (... == SQL_NEED_DATA)
        SQLParamData (...);

        SQLPutData (...)




Greetings  Thomas


----------------------------------------------
Dr. Thomas K�tter
SAP DB, SAP Labs Berlin


SAP DB is open source. Get it!    www.sapdb.org 


 
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to