But when I do the same using FB Services API (isc_action_svc_nrest, isc_spb_options+isc_spb_nbk_inplace, ...)
then after the first error the database will remain locked, and all subsequent attempts to work with it raise:
Statement failed, SQLSTATE = HY000
Error opening database file: Z:\EXPORT\TESTF2.FDB
-The process cannot access the file because it is being used by another process
The FB server must be restarted to unlock the file.
(tested with Firebird-220.127.116.113-0-Beta2 and snapshot Firebird-18.104.22.1689-0_x64)