Hi, There are prepared statements in ODBC (see function SQLPrepare). For columns of type LONG you would write SQL insert or update statements where the value of the LONG column is replaced by a `?' (a parameter). Using SQLPrepare, SQLNumParams and SQLBindParameter you would then prepare the statement and bind the long values to the parameters. Finally you would do an SQLExecute.
Regards, CTB Elias Martenson schrieb: > > Becker, Holger wrote: > > > Elias Martenson wrote: > > > > I suppose you use update commands with string literals for the long columns. > > This isn't supported by SAP DB yet. You should use prepared statements. > > You may find some additional hints within the archive of this mailing list > > See http://www.sapdb.org/sap_db_contact.htm with "long update" as search >expression. > > The problem is that this project is written in C++ and uses ODBC. As far > as I know there is no prepared statements in ODBC. Does this mean that > there is no way for me to change the contents of a long field, short of > removing the row and adding it again? > > Regards > Elias M�rtenson > > _______________________________________________ > sapdb.general mailing list > [EMAIL PROTECTED] > http://listserv.sap.com/mailman/listinfo/sapdb.general -- _______ \o/|\o/ Claus-Thomas Buhl | Diplom-Informatiker \_____/ mailto:[EMAIL PROTECTED] H.E.I. GmbH | Wimpfener Strasse 23 | D-68259 Mannheim Fon: +49-(0)621-795141 | Fax: +49-(0)621-795161 | mailto:[EMAIL PROTECTED] http://www.h-e-i.de && http://www.hei.biz && http://www.radpage.com _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
