Send LONG values to the database using dynamic SQL from an embedded SQL application.
Prerequisites
There are no prerequisites for this task.
Set the sqltype field to DT_LONGVARCHAR, DT_LONGNVARCHAR, or DT_LONGBINARY, as appropriate.
If you are sending NULL, set * sqlind to a negative value.
If you are not sending NULL, set the sqldata field to point to the LONGVARCHAR, LONGNVARCHAR, or LONGBINARY host variable structure.
You can use the LONGVARCHARSIZE(n), LONGNVARCHARSIZE(n), or LONGBINARYSIZE(n) macros to determine the total number of bytes to allocate to hold n bytes of data in the array field.
Set the array_len field of the host variable structure to the number of bytes allocated for the array field.
Set the stored_len field of the host variable structure to the number of bytes of data in the array field. This must not be more than array_len.
Send the data by opening the cursor or executing the statement.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |