Subject Re: Detecting server version using jaybird 2.2
Author Arioch The
You say you use Firebird 2.0+

FB2 introduced feature called context variables

I do not have my PC here now. But from my memory all you do is some stmt like

Select rdb$getcontext('SYSTEM','ENGINE_VERSION') from rdb$database

Actually, just open Firebird installation folder and there should be folder like DOC or HELP and there would be text file SQL Extensions - Context Variables