| SE_version_create |
Creates a child version from an existing version.
LONG SE_version_create (SE_CONNECTION connection, const SE_VERSIONINFO version, BOOL unique_name, SE_VERSIONINFO result_version);
| connection | The connection handle |
| version | A pointer to the VERSIONINFO to use for the child |
| unique_name | If TRUE, add a suffix to the supplied version name to make it unique. If FALSE, fail. |
| result_version | A pointer to the resulting version. |
SE_version_create creates a child version from an existing version. The parent version must be closed and owned by the current user or public, or the current user is the ArcSDE DBA. You can require a unique name by setting unique_name to TRUE. If the name isn't unique, the ArcSDE software will append ‘01’ or whatever value creates a unique version name. If thealready existing version name is My_version05, the new version would be My_version06. If unique_name is false and the version name already exists, the function will fail.
SE_SUCCESS
SE_DB_IO_ERROR
SE_FAILURE
SE_INVALID_POINTER
SE_INVALID_VERSION_ID
SE_INVALID_VERSIONINFO_OBJECT
SE_NET_FAILURE
SE_NO_PERMISSIONS
SE_NOT_TABLE_OWNER
SE_OUT_OF_SVMEM
SE_PARENT_NOT_CLOSED
SE_SDE_NOT_STARTED
SE_STATE_NOEXIST
SE_TABLE_NOEXIST
SE_VERSION_EXISTS
• The required parameters of the SE_VERSIONINFO structure
to set when creating a version are:
name
state_ID
• By default, the description is blank and the version is private.