Command Reference¶
SQL databases offer a quicker, more robust database manager than the DataFlex data manager. Mertech drivers handle most of the intricacies of using DataFlex, a record-oriented programming environment, with Oracle, MS SQL Server (a set oriented database engine), DB2, MySQL or PostgreSQL. However, there are some areas where, with a little tuning of the code, a DataFlex program can offer significant advantages over the SQL engines.
Embedded SQL statements or stored procedure calls can be used for procedures that manipulate a large number of tables and data. By using stored procedures, most of the processing is completed on fast servers and very little data transfer takes place between the server and the client. To achieve these performance objectives, Mertech has developed commands that allow you to optimize your programs for faster data access. These commands and processes are discussed in detail in the following sections.
List of commands:
- CALL_STORED_PROCEDURE
- CLEAR_CONNECTION_OPTION
- CONVERT_DAT_FILE
- COPY_DATA
- CREATE_TABLE_FROM_DAT_FILE
- DISABLE_SCRIPTING
- DISABLE_SELECT_COLUMNS_ERRORS
- DISABLE_TRACE_ON
- ENABLE_SCRIPTING
- ENABLE_TRACE_ON
- END_CALL_PROCEDURE
- GET_CONNECTION_OPTION
- GET_CURRENT_SQL_SERVER
- GET_CURRENT_SQL_SERVER_CONNECTION
- GET_CURRENT_USER_NAME
- GET_CURRENT_USER_PASSWORD
- GET_CUSTOM_OEM_TO_ANSI
- GET_DATABASE_NAME
- GET_DATABASE_PORT
- GET_DATABASE_SOCKET
- GET_DEFAULT_FILE_CASING
- GET_DEFAULT_INDEX_TABLESPACE
- GET_DEFAULT_TABLESPACE
- GET_DRIVER_LICENSE_EXPIRATION_TIME
- GET_DRIVER_MAJOR_REVISION
- GET_DRIVER_REVISION
- GET_FIELDS_NULL
- GET_FIXED_FILE_RECORDS_USED
- GET_INT_CHUNK
- GET_MAX_OBJECT_NAME_LENGTH
- GET_MAX_OPEN_CURSORS
- GET_MIRROR_SERVER
- GET_NAME_SPACE
- GET_NO_AVAILABLE_SQLSERVERS
- GET_OPENED_CURSORS
- GET_PROCEDURE_RETURN
- GET_SCHEMA_NAME
- GET_SERIAL_NUMBER
- GET_SQL_CONSTRAINT
- GET_SQL_CONTAINED_DB_MODE
- GET_SQL_LOCK_TIMEOUT
- GET_SQL_SCRIPT_CHUNK
- GET_SQLSERVER_NAME
- LOGGED_USERS
- LOGIN_SQLFLEX
- MAXIMUM_NUMBER_OF_SESSIONS
- MAXIMUM_NUMBER_OF_USERS
- MERTECH_WARNING_MESSAGE
- NATIVE_OPTIMIZATION
- OPEN_INT
- OUTPUT_INT_FILE
- REEXEC_ORACLE_STORED_PROCEDURE
- RESET_FETCH_FIELDS
- SELECT_COLUMNS_FIND
- SET_AUTHENTICATION_MODE
- SET_AUTOMATIC_NUMERIC_DATATYPE_REMAPPING
- SET_CONNECTION_OPTION
- SET_CURRENT_SQL_SERVER
- SET_CURRENT_SQL_SERVER_CONNECTION
- SET_CUSTOM_OEM_TO_ANSI
- SET_DATABASE_NAME
- SET_DATABASE_PORT
- SET_DATABASE_SOCKET
- SET_DEFAULT_FILE_CASING
- SET_DEFAULT_INDEX_TABLESPACE
- SET_DEFAULT_TABLESPACE
- SET_DRIVER_LICENSE_EXPIRATION_WARNING
- SET_FIELDS_NOT_NULL
- SET_FIELDS_NULL
- SET_FIXED_FILE_RECORDS_USED
- SET_ISOLATION_LEVEL
- SET_MAX_OPEN_CURSORS
- SET_MIRROR_SERVER
- SET_NAME_SPACE
- SET_OPEN_MODE
- SET_PGSQL_TOOLS_SCHEMA
- SET_SCHEMA_NAME
- SET_SESSION_PARAMETER
- SET_SQL_CONSTRAINT
- SET_SQL_CONTAINED_DB_MODE
- SET_SQL_LOCK_TIMEOUT
- SQL_ADD_LOB_CHUNK
- SQL_ADD_LOB_CHUNK_UC
- SQL_APPEND_STMT
- SQL_BINDCOLUMNS_STMT
- SQL_CANCEL_QUERY_STMT
- SQL_CHECK_TABLE
- SQL_CLOSE_CURSOR_STMT
- SQL_COMMIT_STMT
- SQL_CONSTRAINT
- SQL_ERROR_MESSAGE
- SQL_ERROR_MESSAGE2
- SQL_ESCAPE_STRING
- SQL_EXECUTE_STMT
- SQL_FETCH_COLUMN
- SQL_FETCH_NEXT_ROW
- SQL_FOR_SET
- SQL_FUNCTION_EXECUTE
- SQL_GET_CHUNK_SIZE
- SQL_GET_COL_ATTRIBUTE
- SQL_GET_COL_NAME
- SQL_GET_COLUMN_DATA_SIZE
- SQL_GET_COLUMN_DATA_SIZE_UC
- SQL_GET_CURRENT_CURSOR_STMT
- SQL_GET_DATA_CHUNK_EX
- SQL_GET_DATA_CHUNK_EX_UC
- SQL_GET_FUNCTION_RETURN
- SQL_GET_LOB
- SQL_GET_LOB_CHUNK
- SQL_GET_LOB_CHUNK_UC
- SQL_GET_LOB_LENGTH
- SQL_GET_LOB_LENGTH_UC
- SQL_GET_LOB_UC
- SQL_GET_MAX_DATA_SIZE
- SQL_GET_NUM_COLS
- SQL_GET_NUM_ROWS
- SQL_GET_PROCEDURE_PARAMETER
- SQL_GET_STMT
- SQL_INITIALIZE_SEQUENCE
- SQL_NEXT_RESULT_SET
- SQL_OPEN_CURSOR_STMT
- SQL_PREPARE_STMT
- SQL_PROCEDURE_EXECUTE
- SQL_REFRESH_CACHE
- SQL_ROLLBACK_STMT
- SQL_SAVE_BUFFER
- SQL_SAVE_BUFFER_BEGIN
- SQL_SAVE_BUFFER_END
- SQL_SET_CHUNK_SIZE
- SQL_SET_CURRENT_CURSOR_STMT
- SQL_SET_DATE_FORMAT
- SQL_SET_FUNCTION_NAME
- SQL_SET_LOB
- SQL_SET_LOB_NULL
- SQL_SET_LOB_NULL_UC
- SQL_SET_LOB_UC
- SQL_SET_MAX_DATA_SIZE
- SQL_SET_PROCEDURE_NAME
- SQL_SET_PROCEDURE_PARAMETER
- SQL_SET_QUERY_PARAMETER
- SQL_SET_STMT
- SQL_START_TRANSACTION_STMT
- SQL_TEXT_MESSAGE
- SQL_USE_DATABASE
- SQLSERVER_ATTACH_DB
- SQLSERVER_DETACH_DB
- SUPPRESS_SELECT_COUNT
- UNSUPPRESS_SELECT_COUNT
- CALL_STORED_FUNCTION