williamsdb
williamsdb

Reputation: 1064

Is it possible to update one Firebird database from a trigger in another Firebird database?

I have two firebird databases running on the same server and I want to write to a table on one of the databases from a trigger on the other database when certain actions occur. I have had a search and cannot find out if this is possible.

Can it be done either natively in firebird or via a UDF?

Thanks

Neil

Upvotes: 4

Views: 3240

Answers (1)

Douglas Tosi
Douglas Tosi

Reputation: 2350

It will be possible in Firebird 2.5 using the "on external" syntax. Example:

EXECUTE STATEMENT('insert into table(field) values(?)')(:Param)
ON EXTERNAL 'another_server:C:\DB\DB.FDB'
AS USER 'SYSDBA' PASSWORD 'masterkey';

Upvotes: 6

Related Questions