Repository MajorDBVersion Property
This property returns the database version. The database version is created from the version number of the repository engine that created the database. This is a read-only property.
This property is not attached to the default interface for the repository Automation object; it is attached to the IRepository2 interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.
Syntax
variable = object.MajorDBVersion
The MajorDBVersion property syntax has the following parts.
Part | Description |
---|---|
variable | Declared as long. It receives the database major version. |
object | The object that represents the open repository instance. |
Remarks
Database version information is stored in the RTblDatabaseVersion SQL Table. The value will be 2.0 if the database was created or upgraded by repository engine 2.0, or 3.0 if the database was created or upgraded by repository engine 3.0.
Additional version information is available through the MinorDBVersion property.