Subject | Re: [IBO] check FB version |
---|---|
Author | Michel LE CLEZIO |
Post date | 2019-09-26T10:01:07Z |
Hello,
I use this kind of code :
Version : string;
with Datamodule2.IBOQueryProprio do
begin
close;
sql.clear;
sql.Add('SELECT rdb$get_context(''SYSTEM'', ''ENGINE_VERSION'') from rdb$database');
try
execsql;
Version :='Firebird '+Fieldbyname('rdb$get_context').asstring;
except
Version :=Firebird 1.03;
end;
close;
sql.clear;
begin
close;
sql.clear;
sql.Add('SELECT rdb$get_context(''SYSTEM'', ''ENGINE_VERSION'') from rdb$database');
try
execsql;
Version :='Firebird '+Fieldbyname('rdb$get_context').asstring;
except
Version :=Firebird 1.03;
end;
close;
sql.clear;
end;
Best regards
Mikey
Le mercredi 25 septembre 2019 à 19:27:09 UTC+2, Mauro Rocha mnrocha.ufv@... [IBObjects] <IBObjects@yahoogroups.com> a écrit :
Is there any way to get the FB server version and the fbclient.dll version?