SQLGetInfo
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
This topic details the information the ODBC Driver returns to SQLGetInfo.
The following
table describes return values the ODBC driver returns to SQLGetInfo.
| Description | fInfoType argument | Returns |
|---|---|---|
| Guaranteed execute privileges on all procedures returned by SQLProcedures |
SQL_ACCESSIBLE_PROCEDURES
|
N
|
| Guaranteed read access to all table names returned by SQLTables |
SQL_ACCESSIBLE_TABLES
|
N
|
| Maximum number of active connections |
SQL_ACTIVE_CONNECTIONS
|
0
|
| Maximum number of active statements supported for an active connection |
SQL_ACTIVE_STATEMENTS
|
100
|
| Maximum number of active environments |
SQL_ACTIVE_ENVIRONMENTS
|
0
|
| Support for ALTER DOMAIN statement |
SQL_ALTER_DOMAIN
|
0x00000000
|
| Support for ALTER TABLE clauses |
SQL_ALTER_TABLE
|
0x00000000
|
| SQL Conformance |
SQL_SQL_CONFORMANCE
|
SQL_SC_SQL92_ENTRY
|
| Support for datetime literals |
SQL_DATETIME_LITERALS
|
0x00000000
|
| Level of asynchronous mode support |
SQL_ASYNC_MODE
|
SQL_AM_NONE
|
| Behavior with respect to the availability of row counts in batches |
SQL_BATCH_ROW_COUNT
|
0x00000000 |
| Support for batches |
SQL_BATCH_SUPPORT
|
0x00000000 |
| Support for bookmarks |
SQL_BOOKMARK_PERSISTENCE
|
SQL_BP_UPDATE SQL_BP_SCROLL |
| Position of qualifier in a qualified table name |
SQL_CATALOG_LOCATION
|
SQL_CL_START |
| Support for catalog names |
SQL_CATALOG_NAME
|
Y |
| Character used to separate table, column qualifiers |
SQL_CATALOG_NAME_SEPARATOR
|
" ." |
| Term for object that qualifies table names |
SQL_CATALOG_TERM
|
"database" |
| Statements that support qualifiers |
SQL_CATALOG_USAGE
|
SQL_CU_DML_STATEMENTS
|
| Default collation sequence name for the default character set |
SQL_COLLATION_SEQ
|
" " |
| Support for column aliases |
SQL_COLUMN_ALIAS
|
Y |
| Result of concatenation of NULL character column with non‑NULL column |
SQL_CONCAT_NULL_BEHAVIOR
|
SQL_CB_NULL = 0 |
| Conversion from BIGINT |
SQL_CONVERT_BIGINT
|
SQL_CVT_CHAR
|
| Conversion from BINARY |
SQL_CONVERT_BINARY
|
0x00000000
|
| Conversion from BIT |
SQL_CONVERT_BIT
|
0x00000000
|
| Conversion from CHAR |
SQL_CONVERT_CHAR
|
SQL_CVT_CHAR
|
| Conversion from DATE |
SQL_CONVERT_DATE
|
SQL_CVT_CHAR
|
| Conversion from DECIMAL |
SQL_CONVERT_DECIMAL
|
SQL_CVT_CHAR
|
| Conversion from DOUBLE |
SQL_CONVERT_DOUBLE
|
SQL_CVT_CHAR
|
| Conversion from FLOAT |
SQL_CONVERT_FLOAT
|
SQL_CVT_CHAR
|
| Support for conversion functions |
SQL_CONVERT_FUNCTIONS
|
SQL_FN_CVT_CONVERT
|
| Conversion from INTEGER |
SQL_CONVERT_INTEGER
|
SQL_CVT_CHAR
|
| Conversion from INTERVAL_DAY_TIME |
SQL_CONVERT_INTERVAL_
DAY_TIME
|
0x00000000
|
| Conversion from INTERVAL_YEAR_MONTH |
SQL_CONVERT_INTERVAL_
YEAR_MONTH
|
0x00000000
|
| Conversion from INTERVAL_DAY_TIME |
SQL_CONVERT_INTERVAL_DAY_TIME
|
0x00000000
|
| Conversion from LONGVARBINARY. |
SQL_CONVERT_LONGVARBINARY
|
0x00000000
|
| Conversion from LONGVARCHAR |
SQL_CONVERT_LONGVARCHAR
|
0x00000000
|
| Conversion from NUMERIC |
SQL_CONVERT_NUMERIC
|
SQL_CVT_CHAR
|
| Conversion from REAL |
SQL_CONVERT_REAL
|
SQL_CVT_CHAR
|
| Conversion from SMALLINT |
SQL_CONVERT_SMALLINT
|
SQL_CVT_CHAR
|
| Conversion from TIME |
SQL_CONVERT_TIME
|
SQL_CVT_CHAR
|
| Conversion from TIMESTAMP |
SQL_CONVERT_TIMESTAMP
|
SQL_CVT_CHAR
|
| Conversion from TINYINT |
SQL_CONVERT_TINYINT
|
SQL_CVT_CHAR
|
| Conversion from VARBINARY |
SQL_CONVERT_VARBINARY
|
0x00000000
|
| Conversion from VARCHAR |
SQL_CONVERT_VARCHAR
|
SQL_CVT_CHAR
|
| Conversion from WCHAR |
SQL_CONVERT_WCHAR
|
0x00000000
|
| Conversion from WLONGVARCHAR |
SQL_CONVERT_WLONGVARCHAR
|
0x00000000
|
| Conversion from WVARCHAR |
SQL_CONVERT_WVARCHAR
|
0x00000000
|
| Support for table correlation names |
SQL_CORRELATION_NAME
|
SQL_CN_DIFFERENT
|
Support for CREATE ASSERTIONstatement |
SQL_CREATE_ASSERTION
|
0x00000000
|
| Support for CREATE CHARACTER SET statement. |
SQL_CREATE_CHARACTER SET
|
0x00000000
|
| Support for CREATE COLLATION statement |
SQL_CREATE_COLLATION
|
0x00000000
|
| Support for CREATE DOMAIN statement |
SQL_CREATE_DOMAIN
|
0x00000000
|
| Support for CREATE SCHEMA statement |
SQL_CREATE_SCHEMA
|
0x00000000
|
| Support for CREATE TABLE statement |
SQL_CREATE_TABLE
|
SQL_CT_CREATE_TABLE
|
Support for CREATE TRANSLATIONstatement |
SQL_CREATE_TRANSLATION
|
0x00000000
|
| Support for CREATE VIEW statement |
SQL_CREATE_VIEW
|
SQL_CV_CREATE_VIEW
|
| Effect of COMMIT operation on cursors and prepared statements |
SQL_CURSOR_COMMIT_BEHAVIOR
|
SQL_CB_PRESERVE
|
| Effect of ROLLBACK operation on cursors and prepared statements |
SQL_CURSOR_ROLLBACK_BEHAVIOR
|
SQL_CB_PRESERVE
|
| Support for cursor sensitivity |
SQL_CURSOR_SENSITIVITY
|
SQL_INSENSITIVE
|
| Name of the data source as specified to the ODBC Administrator |
SQL_DATA_SOURCE_NAME
|
(String containing the name)
|
| Access limited to read‑only |
SQL_DATA_SOURCE_READ_ONLY
|
N (Read‑write access)
|
| Name of the Progress SQL‑92 ODBC data source on the server system |
SQL_DATABASE_NAME
|
(String containing the name)
|
| Name of the database product supporting the data source |
SQL_DBMS_NAME
|
OPENEDGE
|
| Version of the database product |
SQL_DBMS_VER
|
10.1B
|
| Default transaction isolation level |
SQL_DEFAULT_TXN_ISOLATION
|
SQL_TXN_READ_COMMITTED
|
| Support for describing parameters via DESCRIBE INPUT statement |
SQL_DESCRIBE_PARAMETER
|
Y (Supports)
|
| Version of the driver manager |
SQL_DM_VER
|
03.52.1117.0000
|
| Connection handle determined by the argument InfoType |
SQL_DRIVER_HDBC
|
0x017E4538
|
| Driver's descriptor handle determined by the Driver Manager's descriptor handle |
SQL_DRIVER_HDESC
|
0x017E68A8
|
| Environment handle determined by the argument InfoType |
SQL_DRIVER_HENV
|
0x017E4090
|
| Handle library from the load library returned to the Driver Manager when it loaded the driver DLL |
SQL_DRIVER_HLIB
|
0x28660000
|
| Driver's statement handle determined by the Driver Manager's statement handle |
SQL_DRIVER_HSTMT
|
0x01828050
|
| Name of the dynamic link library file for the ODBC Driver |
SQL_DRIVER_NAME
|
Windows
AIX, SOLARIS, LINUX
HPIIX
|
| Supported ODBC version |
SQL_DRIVER_ODBC_VER
|
03.52
|
| Current version of the ODBC Driver |
SQL_DRIVER_VER
|
05.20.0039 (b0034, u0022)
|
| Support for DROP ASSERTION statement |
SQL_DROP_ASSERTION
|
0x00000000
|
| Support for DROP CHARACTER SET statement |
SQL_DROP_CHARACTER_SET
|
0x00000000
|
| Support for DROP COLLATION statement |
SQL_DROP_COLLATION
|
0x00000000
|
| Support for DROP DOMAIN statement |
SQL_DROP_DOMAIN
|
0x00000000
|
| Support for DROP SCHEMA statement |
SQL_DROP_SCHEMA
|
0x00000000
|
| Support for DROP TABLE statement |
SQL_DROP_TABLE
|
SQL_DT_DROP_TABLE
|
| Support for DROP TRANSLATION statement |
SQL_DROP_TRANSLATION
|
0x00000000
|
| Support for DROP VIEW statement |
SQL_DROP_VIEW
|
SQL_DV_DROP_VIEW
|
Supported attributes of a dynamic cursor: subset 1 |
SQL_DYNAMIC_CURSOR_
ATTRIBUTES1
|
0x00000000
|
Supported attributes of a dynamic cursor: subset 2 |
SQL_DYNAMIC_CURSOR_
ATTRIBUTES2
|
0x00000000
|
| Support for expressions in ORDER BY clause |
SQL_EXPRESSIONS_IN_ORDERBY
|
Y
|
| Supported fetch direction option. |
SQL_FETCH_DIRECTION
|
SQL_FD_FETCH_NEXT
|
| Single‑tier driver behavior |
SQL_FILE_USAGE
|
SQL_FILE_NOT_SUPPORTED
|
Supported attributes of a forward‑only cursor:
subset 1 |
SQL_FORWARD_ONLY_
CURSOR_ATTRIBUTES1
|
SQL_CA1_NEXT
|
Supported attributes of a forward‑only cursor:
subset 2 |
SQL_FORWARD_ONLY_
CURSOR_ATTRIBUTES2
|
SQL_CA2_MAX_ROWS_SELECT
|
| Supported extensions to SQLGetData |
SQL_GETDATA_EXTENSIONS
|
SQL_GD_ANY_COLUMN
|
| Relationship between GROUP BY clause and columns in the select list |
SQL_GROUP_BY
|
SQL_GB_GROUP_BY_CONTAINS_SELECT
|
| Case sensitivity of user‑supplied names |
SQL_IDENTIFIER_CASE
|
SQL_IC_UPPER
|
| Character used to enclose delimited identifiers |
SQL_IDENTIFIER_QUOTE_CHAR
|
" (Double quotation mark)
|
| Keywords supported in the CREATE INDEX statement |
SQL_INDEX_KEYWORDS
|
SQL_IK_ASC |SQL_IK_DESC
|
| Supported views in INFORMATION_SCHEMA |
SQL_INFO_SCHEMA_VIEWS
|
0x00000000
|
| Support for Integrity Enhancement Facility |
SQL_INTEGRITY
|
Y
|
Supported attributes of a keyset cursor: subset 1 |
SQL_KEYSET_CURSOR_
ATTRIBUTES1
|
SQL_CA1_NEXT
|
Supported attributes of a keyset cursor: subset 2 |
SQL_KEYSET_CURSOR_
ATTRIBUTES2
|
SQL_CA2_READ_ONLY_CONCURRENCY
|
| Data source specific keywords |
SQL_KEYWORDS
|
See OpenEdge SQL reserved words for a list of SQL Keywords. |
| Support for escape clause in LIKE predicates |
SQL_LIKE_ESCAPE_CLAUSE
|
Y
|
| Support for lock types |
SQL_LOCK_TYPES
|
SQL_LCK_NO_CHANGE
|
| Maximum number of active concurrent statements in asynchronous mode |
SQL_MAX_ASYNC_CONCURRENT_STATEMENTS
|
0
|
| Maximum length in hexadecimal characters of binary literals |
SQL_MAX_BINARY_LITERAL_LEN
|
31,983
|
| Maximum length of a table or column qualifier |
SQL_MAX_CATALOG_NAME_LEN
|
32
|
| Maximum length in characters of character string literals |
SQL_MAX_CHAR_LITERAL_LEN
|
31,983
|
| Maximum length of a column name |
SQL_MAX_COLUMN_NAME_LEN
|
32
|
| Maximum number of columns allowed in GROUP BY clause |
SQL_MAX_COLUMNS_IN_GROUP_BY
|
5000
|
| Maximum number of columns allowed in an index |
SQL_MAX_COLUMNS_IN_INDEX
|
16
|
| Maximum number of columns allowed in ORDER BY clause |
SQL_MAX_COLUMNS_IN_ORDER_BY
|
0
|
| Maximum number of columns allowed in a SELECT list |
SQL_MAX_COLUMNS_IN_SELECT
|
5000
|
| Maximum number of columns allowed in a table |
SQL_MAX_COLUMNS_IN_TABLE
|
5000
|
| Maximum number of active SQL statements |
SQL_MAX_CONCURRENT_ACTIVITIES
|
100 |
| Maximum length of a cursor name |
SQL_MAX_CURSOR_NAME_LEN
|
18
|
| Maximum number of active connections |
SQL_MAX_DRIVER_CONNECTIONS
|
0
|
| Maximum length of user‑defined names |
SQL_MAX_IDENTIFIER_LEN
|
32
|
| Maximum number of bytes allowed in the combined fields of an index |
SQL_MAX_INDEX_SIZE
|
115
|
| Maximum length of a procedure name |
SQL_MAX_PROCEDURE_NAME_LEN
|
32
|
| Maximum length in bytes of a table row |
SQL_MAX_ROW_SIZE
|
31995
|
| Whether maximum row size includes LONGVARCHAR and LONGVARBINARY |
SQL_MAX_ROW_SIZE_INCLUDES_LONG
|
N
|
| Maximum length of an owner name |
SQL_MAX_SCHEMA_NAME_LEN
|
32
|
| Maximum number of characters in an SQL statement |
SQL_MAX_STATEMENT_LEN
|
131,000
|
| Maximum length of a table name |
SQL_MAX_TABLE_NAME_LEN
|
32
|
Maximum number of tables allowed in FROM clause |
SQL_MAX_TABLES_IN_SELECT
|
250
|
| Maximum length of a user name |
SQL_MAX_USER_NAME_LEN
|
32
|
| Maximum length of owner name |
SQL_MAX_OWNER_NAME_LEN
|
32
|
| Maximum length of a qualifier name |
SQL_MAX_QUALIFIER_NAME_LEN
|
32
|
| Support for multiple result sets |
SQL_MULT_RESULT_SETS
|
N
|
| Support for active transactions on multiple connections |
SQL_MULTIPLE_ACTIVE_TXN
|
Y
|
| Whether data source requires length of LONGVARCHAR and LONGVARBINARY data |
SQL_NEED_LONG_DATA_LEN
|
Y
|
| Support for NOT NULL clause in CREATE TABLE statement |
SQL_NON_NULLABLE_COLUMNS
|
SQL_NNC_NON_NULL
|
Where NULL values are sorted
in a list |
SQL_NULL_COLLATION
|
SQL_NC_HIGH
|
| Numeric functions supported |
SQL_NUMERIC_FUNCTIONS
|
SQL_FN_NUM_ABS
|
| Level of ODBC conformance |
SQL_ODBC_API_CONFORMANCE
|
SQL_OAC_LEVEL1
|
| Level of ODBC 3.x interface conformance |
SQL_ODBC_INTERFACE_CONFORMANCE
|
SQL_OIC_CORE
|
| SQL Access Group (SAG) conformance |
SQL_ODBC_SAG_CLI_CONFORMANCE
|
SQL_OSCC_COMPLIANT
|
| Level of SQL conformance |
SQL_ODBC_SQL_CONFORMANCE
|
SQL_OSC_EXTENDED
|
| Referential integrity syntax support |
SQL_ODBC_SQL_OPT_IEF
|
Y
|
| ODBC version supported by driver manager |
SQL_ODBC_VER
|
03.52.0000
|
| Types of outer joins supported |
SQL_OJ_CAPABILITIES
|
SQL_OJ_LEFT
|
| Whether columns in ORDER BY clause must also be in select list |
SQL_ORDER_BY_COLUMNS_IN_SELECT
|
N
|
| Support for outer joins |
SQL_OUTER_JOINS
|
Y
|
| Name for an owner |
SQL_OWNER_TERM
|
owner
|
| Statements in which owner can be used |
SQL_OWNER_USAGE
|
SQL_OU_DML_STATEMENTS
|
| Characteristics of row counts available in a parameterized execution |
SQL_PARAM_ARRAY_ROW_COUNTS
|
SQL_PARC_NO_BATCH
|
| Characteristics of result sets available in a parameterized execution |
SQL_PARAM_ARRAY_SELECTS
|
SQL_PAS_NO_SELECT
|
| Supported operations in SQLSetPos |
SQL_POS_OPERATIONS
|
SQL_POS_POSITION
|
| Supported positioned SQL statements |
SQL_POSITIONED_STATEMENTS
|
SQL_PS_POSITIONED_DELETE
|
| Term for procedures |
SQL_PROCEDURE_TERM
|
procedure
|
| SQL procedures support |
SQL_PROCEDURES
|
Y
|
| Support for qualifiers |
SQL_QUALIFIER_USAGE
|
SQL_CU_DML_STATEMENTS
|
| Case sensitivity of quoted user‑supplied names |
SQL_QUOTED_IDENTIFIER_CASE
|
SQL_IC_MIXED
|
| Separator character used between qualifier name and element |
SQL_QUALIFIER_NAME_SEPARATOR
|
" . "
|
| Term used for a qualifier |
SQL_QUALIFIER_TERM
|
"database"
|
| Position of the qualifier in a qualified table name |
SQL_QUALIFIER_LOCATION
|
SQL_CL_START |
| Detect changes to any row in mixed‑cursor operations |
SQL_ROW_UPDATES
|
Y
|
| Term for entity that has owner privileges on objects |
SQL_SCHEMA_TERM
|
owner |
| Statements that support use of owner qualifiers |
SQL_SCHEMA_USAGE
|
SQL_OU_DML_STATEMENTS
|
| Options supported for scrollable cursors |
SQL_SCROLL_OPTIONS
|
SQL_SO_FORWARD_ONLY
|
| Support for scrollable cursors |
SQL_SCROLL_CONCURRENCY
|
SQL_SCCO_READ_ONLY
|
| Character to permit wildcard characters in search strings |
SQL_SEARCH_PATTERN_ESCAPE
|
\ (Backslash) |
| Name of the system where the ODBC data source resides |
SQL_SERVER_NAME
|
(String containing the name) |
| Special characters allowed in user‑supplied names |
SQL_SPECIAL_CHARACTERS
|
"_", "%" |
| Datetime scalar functions supported |
SQL_SQL92_DATETIME_FUNCTIONS
|
0x00000000
|
| Behavior of DELETE statement that refers to a foreign key. |
SQL_SQL92_FOREIGN_KEY_DELETE_RULE
|
0x00000000
|
| Behavior of UPDATE statement that refers to a foreign key |
SQL_SQL92_FOREIGN_KEY_UPDATE_RULE
|
0x00000000
|
| GRANT statement clauses supported |
SQL_SQL92_GRANT
|
SQL_SG_DELETE_TABLE
|
| Numeric scalar functions supported |
SQL_SQL92_NUMERIC_
VALUE_FUNCTIONS
|
SQL_SNVF_CHAR_LENGTH
|
| Predicates supported |
SQL_SQL92_PREDICATES
|
SP_EXISTS
|
| Relational join operators supported |
SQL_SQL92_RELATIONAL_JOIN_OPERATORS
|
0x00000000
|
| REVOKE statement clauses supported |
SQL_SQL92_REVOKE
|
SQL_SR_GRANT_OPTION_FOR
|
| Row value constructor expressions supported |
SQL_SQL92_ROW_VALUE_CONSTRUCTOR
|
0x00000000
|
| String scalar functions supported |
SQL_SQL92_STRING_FUNCTIONS
|
SQL_SSF_CONVERT
|
| Value expressions supported |
SQL_SQL92_VALUE_EXPRESSIONS
|
SQL_SVE_COALESCE
|
| CLI standards to which the driver conforms |
SQL_STANDARD_CLI_CONFORMANCE
|
SQL_SCC_XOPEN_CLI_VERSION1
|
Supported attributes of a static cursor: subset 1 |
SQL_STATIC_CURSOR_ATTRIBUTES1
|
SQL_CA1_NEXT
|
Supported attributes of a static cursor: subset 2 |
SQL_STATIC_CURSOR_ATTRIBUTES2
|
SQL_CA2_READ_ONLY_CONCURRENCY
|
| Support for detection of changes made to a static or key‑set driven cursor through SQLSetPos |
SQL_STATIC_SENSITIVITY
|
0x00000000
|
| String functions supported |
SQL_STRING_FUNCTIONS
|
SQL_FN_STR_CONCAT S
|
| Predicates that support subqueries |
SQL_SUBQUERIES
|
SQL_SQ_COMPARISON
|
| System functions supported |
SQL_SYSTEM_FUNCTIONS
|
SQL_FN_SYS_USERNAME
|
| Term for tables |
SQL_TABLE_TERM
|
"table"
|
| Timestamp intervals supported for TIMESTAMPADD function |
SQL_TIMEDATE_ADD_INTERVALS
|
0x00000000
|
| Timestamp intervals supported for TIMESTAMPDIFF function |
SQL_TIMEDATE_DIFF_INTERVALS
|
0x00000000
|
| Date‑time functions supported |
SQL_TIMEDATE_FUNCTIONS
|
SQL_FN_TD_NOW
|
| Support for DML, DDL within transactions |
SQL_TXN_CAPABLE
|
SQL_TC_ALL
|
| Options for setting transaction isolation levels |
SQL_TXN_ISOLATION_OPTION
|
SQL_TXN_READ_UNCOMMITTED
|
| UNION support |
SQL_UNION
|
SQL_U_UNION
|
| Name of user connected to the data source |
SQL_USER_NAME
|
(String containing the name) |
| Year of publication of the X/Open specification with which the driver complies |
SQL_XOPEN_CLI_YEAR
|
1995
|