If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Help needed on FireBird Triggers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-06, 14:28
kostas_ kostas_ is offline
Registered User
 
Join Date: Jul 2006
Posts: 1
Question Help needed on FireBird Triggers

Hi, I would like to know if it is possible to fire a trigger in Firebird (After Insert or Update or Delete) that keeps track of inserts, updates or deletes from a given table and then take those changes and propagate them to another database.

For Example (MSSQL)
After deleting a row from [dbo.table1] the same row from TestDB2.table1 is deleted also

CREATE TRIGGER [TR2] ON TestDB1.table1
FOR DELETE
AS

DELETE FROM TestDB2.dbo.table1
WHERE field1 = (SELECT field1 FROM DELETED)

My question is... I can do the same on a FireBird DataBase?

Thank you,

Kostas
Reply With Quote
  #2 (permalink)  
Old 03-22-09, 16:55
VLDG VLDG is offline
Registered User
 
Join Date: Mar 2009
Posts: 24
you can do more :P

you can make before or after I U D

CREATE TRIGGER
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On