sqlald() — Allocate Dynamic SQL Descriptor
Allocates memory for the SQL descriptor area, including the SQLDA_T structure and one SQLVAR_T structure for each column. Supports the EXEC SQL ALLOCATE DESCRIPTOR... statement.
On successful completion,
sqlald()
returns a pointer to the allocated SQLDA_T structure; otherwise it returns a 0 pointer value. Since a failed sqllogin returns to the original state as if nosqllogin()
had been executed,sqlald()
fails after a failedsqllogin()
. Ansqlald()
call succeeds only when the application successfully logs in.
ncols
The maximum number of columns available for a dynamic cursor statement. The maximum value for
EXAMPLEncols
is 512.This example allocates an SQL descriptor area for 10 columns, and assigns it to
psqlda:
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |