function
|
SQLSetDescRec
|
|
Library: omodbc - low-level ODBC support
Include: omodbc.xin
|
Return type: Integer
Returns: An SQL return code. The following values may be returned:
- SQL_SUCCESS (the descriptor fields were successfully set).
- SQL_SUCCESS_WITH_INFO (the descriptor fields were successfully set, but a message was issued).
- SQL_ERROR (an error occurred).
- SQL_INVALID_HANDLE (the handle is invalid).
|
Declaration define external integer function SQLSetDescRec
( read-only SQL_handle_type DescriptorHandle,
value integer RecNumber,
value integer Type,
value integer SubType,
value integer Length,
value integer Precision,
value integer Scale,
value integer Data,
value integer StringLength,
value integer Indicator)
Purpose
Sets multiple descriptor fields, which affect the data type and buffer bound to a column or parameter data.
Input arguments:
- DescriptorHandle.
- RecNumber. Identifies the descriptor record containing the field the application seeks to set. Descriptor records are numbered from 0; record number 0 is the bookmark record.
- Type. The new value for the SQL_DESC_TYPE field.
- SubType. The new value for the SQL_DESC_DATETIME_INTERVAL_CODE field for SQL_DATETIME and SQL_INTERVAL type records.
- Length. The new value for the SQL_DESC_OCTET_LENGTH field.
- Precision. The new value for the SQL_DESC_PRECISION field.
- Scale. The new value for the SQL_DESC_SCALE field.
- Data. The new value for the SQL_DESC_DATA_PTR field.
- StringLength. The new value for the SQL_DESC_OCTET_LENGTH_PTR field.
- Indicator. The new value for the SQL_DESC_OCTET_LENGTH_PTR field.
Generated: August 11, 2000 at 3:07:59 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com
Copyright © OmniMark Technologies Corporation, 1988-2000.