SQLCopyDesc - Copy description statement

Purpose

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. SQLCancel 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