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.
SQLRETURN SQLCopyDesc (SQLHDESC sDesc) (SQLHDESC tDesc);
Data type | Argument | Use | Description |
---|---|---|---|
SQLHDESC | sDesc | Input | Source descriptor handle |
SQLHDESC | tDesc | Input | Target descriptor handle |
Handles for the automatically-generated row and parameter descriptors of a statement can be obtained by calling GetStmtAttr().