Salesforce

SQL Limits (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

SQL Limits (Magic xpa 2.x)

The utility uses the existing connection to the data source selected and sends the function SQLGetInfo, which returns information about the limits applied to identifiers and clauses in SQL statements, such as the maximum lengths of identifiers and the maximum number of columns in a select list.

Note: Either the driver or the data source may impose limitations.

To retrieve the same information, simply connect to the data source with Connect\Full Connect, and select Connect\SQLGetInfo with the specific fInfoType you want. The result is in the rgbInfoValue field in the result window.

SQL_MAX_COLUMN_NAME_LEN = 64

A 16-bit integer value specifying the maximum length of a column name in the data source. If there is no maximum length or the length is unknown, this value is set to zero.

SQL_MAX_QUALIFIER_NAME_LEN = 260

A 16-bit integer value specifying the maximum length of a qualifier name in the data source. If there is no maximum length or the length is unknown, this value is set to zero.

SQL_MAX_TABLE_NAME_LEN = 64

A 16-bit integer value specifying the maximum length of a table name in the data source. If there is no maximum length or the length is unknown, this value is set to zero.

SQL_MAX_INDEX_SIZE = 255

A 32-bit integer value specifying the maximum number of bytes allowed in the combined fields of an index. If there is no specified limit or the limit is unknown, this value is set to zero.

SQL_MAX_COLUMNS_IN_INDEX = 10

A 16-bit integer value specifying the maximum number of columns allowed in an index. If there is no specified limit or the limit is unknown, this value is set to zero.

SQL_MAX_COLUMNS_IN_ORDER_BY = 10

A 16-bit integer value specifying the maximum number of columns allowed in an ORDER BY clause. If there is no specified limit or the limit is unknown, this value is set to zero.

SQL_MAX_COLUMNS_IN_SELECT = 255

A 16-bit integer value specifying the maximum number of columns allowed in a select list. If there is no specified limit or the limit is unknown, this value is set to zero.

SQL_MAX_COLUMNS_IN_TABLE = 255

A 16-bit integer value specifying the maximum number of columns allowed in a table. If there is no specified limit or the limit is unknown, this value is set to zero.

Reference
Attachment 
Attachment