ALLOCATE DESCRIPTOR Statement [ESQL]

Allocates space for an SQL descriptor area (SQLDA).

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

ALLOCATE DESCRIPTOR descriptor-name
   … [ WITH MAXinteger | host-variable } ]

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

You must declare the following in your C code prior to using this statement:

struct sqlda * descriptor_name

You must still call fill_sqlda to allocate space for the actual data items before doing a fetch or any statement that accesses the data within a descriptor area.

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Supported by Open Client/Open Server.

Permissions

(back to top)

None
Related reference
DEALLOCATE DESCRIPTOR Statement [ESQL]