xpxGetDatabaseVersion
FUNCTION xpxGetDatabaseVersion (location : STRING; name : STRING; VAR version : INTEGER; VAR blockSize : INTEGER; VAR maxModels : INTEGER) status : INTEGER;
The xpxGetDatabaseVersion function returns the database version and the database block size of the specified EDMdatabase. The specified EDMdatabase may be opened by the calling application or may be closed (unused). The main purpose of this operation is to be able to retrieve these two values from EDMdatabases that cannot be opened by the calling application due to incompatible block size and/or incompatible database version in the running EDMserver/EDMinterface and the specified EDMdatabase. If the EDMdatabase cannot be opened due to incompatible block size, then the block size of the running EDMserver/EDMinterface must be set equal to the block size in the actual EDMdatabase before the specified EDMdatabase can be opened by the running EDMserver/EDMinterface. If the EDMdatabase cannot be opened due to incompatible database versions, the actual EDMdatabase must be dumped by an EDMserver/EDMinterface that supports the actual EDMdatabase version, and then restored by the actual running EDMserver/EDMinterface. For details, see the EDMsupervisor commands Database>Dump and Database>Restore. The argument <location> specifies the path to the directory where the database is located. The <location> must be specified as an absolute path of the actual EDMserver.Â
Â
Arguments
Type | Name | Comment |
STRING | location | can be specified with and without the directory delimiter character as the last character in the directory path. The directory delimiter character is '\' on the Windows platforms and '/' on the Unix platforms. |
STRING | name | specifies the name of the database of interest. |
INTEGER | version | is an address of a variable that will receive the EDMdatabase version identifier of the specified EDMdatabase. |
INTEGER | blockSize | is an address of a variable that will receive the database block size of the specified EDMdatabase. |
INTEGER | maxModels | is an address of a variable that will receive the maximum number of models in the specified EDMdatabase. |
Return Value
Options
Â
Example
<Missing Example>
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â