SE_serverinfo_get_autocommit

Extracts AUTOCOMMIT from the SE_SERVERINFO object

Usage syntax

LONG SE_serverinfo_get_autocommit (const SE_SERVERINFO svrInfo, LONG *autocommit);

Parameters
svrInfo The SE_SERVERINFO object
autocommit AUTOCOMMIT value
Description

This function extracts the AUTOCOMMIT value from the SE_SERVERINFO object.

The AUTOCOMMIT value is stored in the geodatabase's SERVER_CONFIG (or sde_server_config) table. This parameter controls the implicit ArcSDE user automatic commit rate within a transaction. If AUTOCOMMIT is set to 0, the transaction commits only if the application issues an explicit commit. If it is set to a number greater than 0, the operation commits after the number of updates specified has occurred. For instance, for the default setting of 1,000, a commit occurs after 1,000 updates. This feature prevents transactions from becoming too large and exceeding the database management system (DBMS) logs.

Returns

SE_SUCCESS
SE_INVALID_POINTER

SE_INVALID_SERVERINFO_OBJECT

SE_SDE_NOT_STARTED