check On-Disk-Structure (Version) of fdb-file
Posted: 16.01.2024, 09:12
Hello,
I am testing migration from FB 2.5 to FB 4 with the embedded Version of Firebird. In embedded Version of firebird 4 it is possible, to open a Database-File that has Version 2.5. My Delphi-application does not recognize that there is an old ODS-version. I don't want this kind of mismatching usage so I am looking for a way, to check after opening a Database-file, which Firebird-Version is used to create this fdb-file (which ODS version is present).
I can't find any "get"-function in ZConnection to read the ODS-version from the used DB-file. Is there such a function that I can't find?
I know that it is possible to get the version with gstat-tool from firebird as "ODS version" in the result-page. But I would like to avoid running gstat via windows-call and then searching the result for the ODS version. So I hope there is any function in ZeosLib to get the file-version :-)
best regards
Siegbert
I am testing migration from FB 2.5 to FB 4 with the embedded Version of Firebird. In embedded Version of firebird 4 it is possible, to open a Database-File that has Version 2.5. My Delphi-application does not recognize that there is an old ODS-version. I don't want this kind of mismatching usage so I am looking for a way, to check after opening a Database-file, which Firebird-Version is used to create this fdb-file (which ODS version is present).
I can't find any "get"-function in ZConnection to read the ODS-version from the used DB-file. Is there such a function that I can't find?
I know that it is possible to get the version with gstat-tool from firebird as "ODS version" in the result-page. But I would like to avoid running gstat via windows-call and then searching the result for the ODS version. So I hope there is any function in ZeosLib to get the file-version :-)
best regards
Siegbert