PRB: dbwritetext Returns SQL Server Message 156ID: Q105102
|
When attempting to call the dbwritetext function to update a text or
image value, a DB-Library application can receive the following error
message 156:
Incorrect syntax near the keyword NULL.
This error is caused by passing a NULL text pointer value returned by
dbtxptr, and a NULL text timestamp value returned by dbtxtimestamp, to
the dbwritetext function.
The dbtxptr and dbtxtimestamp functions return pointers to values from
the current DB-Library row, similar to dbdata. The dbtxptr and
dbtxtimestamp functions can return NULL values for two reasons:
Ensure that both the dbtxptr and dbtxtimestamp functions return valid,
non-NULL values before passing them to dbwritetext. This can be achieved
by ensuring that:
Additional query words: 4.20.00 dblib
Keywords : kbprg SSrvDB_Lib SSrvProg
Version : 4.2
Platform : OS/2 WINDOWS
Issue type :
Last Reviewed: March 17, 1999