SQLCopyDesc - Copy description statement
SQLCopyDesc() copies the fields of the data structure associated with the source handle to the data structure associated with the target handle.
Any existing data in the data structure associated with the target handle is overwritten, except that the ALLOC_TYPE field is not changed.
Syntax
SQLRETURN SQLCopyDesc (SQLHDESC sDesc) (SQLHDESC tDesc);
Function arguments
Table 1. SQLCopyDesc arguments Data type Argument Use Description SQLHDESC sDesc Input Source descriptor handle SQLHDESC tDesc Input Target descriptor handle
Usage
Handles for the automatically-generated row and parameter descriptors of a statement can be obtained by calling GetStmtAttr().
Return codes
- SQL_SUCCESS
- SQL_INVALID_HANDLE
- SQL_ERROR
Parent topic:
DB2 UDB CLI functions