Pues esa consulta no me arroja ningún dato, estoy haciendo algo mal?
Código SQL
[-]
Datos.Query1.Close;
Datos.Query1.SQL.Clear;
Datos.Query1.Database:=Datos.IBDatabase1;
Datos.Query1.SQL.Add('Select coalesce(rdb$trigger_inactive, 0)');
Datos.Query1.SQL.Add('From rdb$triggers');
Datos.Query1.SQL.Add('Where rdb$trigger_name=:ValorTriger');
Datos.Query1.ParamByName('ValorTriger').AsString:='LINEASAV_AD';
If Not Datos.Query1.Prepared Then Datos.Query1.Prepare;
Datos.Query1.Open;
ShowMessage(Datos.Query1.Fields[0].AsString);