Table B-2. Virtual Memory Requirements For Sql Statements - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

Memory Considerations
These structures are shared by all SQL statements and directives in a program:
Structure
SQLCA
SQLSA
Use
Table B-2

Table B-2. Virtual Memory Requirements for SQL Statements

Bytes Required
72
+ 4 + (24 * number of input host variables)
+ 4 + (24 * number of output host variables)
+ 146
Follow these guidelines when you use
Count a host variable once per occurrence.
Count these SQL statements and directives (which generate a run-time call to the
SQL executor):
ALTER
BEGIN WORK
CLOSE
COMMENT
CREATE
DELETE
DESCRIBE
DESCRIBE INPUT
Do not count these SQL statements and directives:
BEGIN DECLARE SECTION and END DECLARE SECTION
CONTROL EXECUTOR, CONTROL QUERY, and CONTROL TABLE
DECLARE CURSOR
INVOKE
WHENEVER
HP NonStop SQL/MP Programming Manual for C—429847-008
Bytes
Description
430
Count once if you specify the INCLUDE SQLCA directive.
838 or
Count once if you specify the INCLUDE SQLSA directive. A
1790
version 330 or later SQLSA structure is 1790 bytes; older SQLSA
structures are 838 bytes.
to estimate the memory used by each SQL statement and directive.
DROP
END WORK
EXECUTE
EXECUTE IMMEDIATE
FETCH
FREE RESOURCES
GET VERSION
HELP TEXT
Estimating Memory Requirements
Description
Base value for a statement with no host
variables
Required for a statement with input host
variables
Required for a statement with output host
variables
Required for a static SQL statement that
uses a cursor declared in the global area of
the program
Table
B-2:
INSERT
LOCK TABLE
OPEN
RELEASE
ROLLBACK WORK
SELECT
UNLOCK TABLE
UPDATE
UPDATE STATISTICS
B-3

Advertisement

Table of Contents
loading

Table of Contents