SE_state_save_to_base64

Saves changes to the base state

Usage syntax

LONG SE_state_save_to_base64 (SE_CONNECTION connection, LONG high_state_id, BOOL commit_each_table);

Parameters
connection The connection handle
high_state_id The high state ID
commit_each_table Flag to indicate if function commits after each table is saved to base.
Description

This function saves versioned changes of a base-save table to  the base state. The user executing this function must either be the ArcSDE administrator or the owner of the high state.

This function is similar to the trimming-to-base operation. There are only two differences between these two operations:
1. Saving changes to base will only effect base-save enabled tables;
2. Walking back to the base state from the specified high state, only those states before one of: a branch point, state not owned by the current user (unless the current user is DBA), or state with version will be deleted.

Also, if the commit_each_table parameter is TRUE, this function will commit after each table is saved to base; otherwise, all tables are saved to base within a single transaction.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_INVALID_ON_BASE_STATE
SE_INVALID_POINTER
SE_INVALID_STATE_ID

SE_NET_IO_ERROR
SE_NET_FAILURE
SE_NO_PERMISSIONS

SE_OUT_OF_SVMEM
SE_STATE_INUSE
SE_STATE_TREE_INUSE
SE_STATE_NOEXIST

SE_TABLE_NOEXIST