TIBCConnection.Options.NoDBTriggers

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Fabrice
Posts: 45
Joined: Tue 07 Sep 2010 09:44

TIBCConnection.Options.NoDBTriggers

Post by Fabrice » Tue 06 Jun 2017 13:49

Hello,

I have to copy a database (Firebird 2.5 or 3.0) from Charset "None" to another in Charset "UTF8".
I use Tibcquery and TCRBatchmove components.
It's work fine except for the option TIBCConnection.Options.NoDBTriggers:=true for my destination Database because I would like to disable all triggers of my destination database while executing Batchmove.

Does NoDBTriggers means :
1) "disable trigger for all the connection time" => it's doesn't work
2) "does not restore trigger" only when restore a database ?

If 2) Does it exist a method get list of all triggers like do GetTableNames or GetGeneratorNames ?


Best regards,
Fabrice

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TIBCConnection.Options.NoDBTriggers

Post by ViktorV » Wed 07 Jun 2017 08:46

The TIBCConnection.Options.NoDBTriggers property is responsible for disabling database triggers: https://firebirdsql.org/refdocs/langref ... igger.html
To disable the required triggers, you should refer to Firebird documentation or address this question to Firebird technical support.
To receive all database triggers, you can execute a query to the Firebird RDB $ TRIGGERS system table. For example:

Code: Select all

IBCQuery.SQL.Text: = 'select * from RDB $ TRIGGERS';
IBCQuery.Open;

Post Reply