DBCreatedVersion function

Determines the version of SQL Anywhere that was used to create a database file, without attempting to start the database. Currently, this function only differentiates between version 10 or 11 and pre-10 databases.

Prototype
short DBCreatedVersion ( a_db_version_info * );
Parameters

A pointer to a structure. See a_db_version_info structure.

Return value

A return code, as listed in Software component exit codes.

Remarks

If the return code indicates success, then the created_version field of the a_db_version_info structure contains a value of type a_db_version indicating which version of SQL Anywhere created the database. For the definition of the possible values, see a_db_version enumeration.

Version information is not set if a failing code is returned.

See also