On 24-11-2021 11:00, Pierre Y. wrote:
> I just checked that the date got using isc_info_creation_date is not
> updated after a restore. It remains the same.
I checked with Firebird 4.0, and there Creation date on the header page
(gstat -h) is updated (and I assume that is the value reported by
isc_info_creation_date, but I don't have time to verify that right now).
> And, do you know how I can retrieve the database GUID (using the
> Firebird API) ?
You can retrieve it with fb_info_db_guid (= 144)
> I'm investigating the NextTransaction number. Even if someone restores a
> copy of a somewhat older FDB, without restoring a backup, I could detect
> that with the NextTransaction number.
You could also use the Next Attachment ID from the header page as an
indicator, but I believe that one roles over.
Mark
--
Mark Rotteveel