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 > DB2 > Trigger - copy before delete record

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-06, 04:38
milacek milacek is offline
Registered User
 
Join Date: Nov 2005
Location: Prague, Czech Republic
Posts: 8
Trigger - copy before delete record

Hello,

I am looking for trigger which will copy a record to another database before erasing (I am confused about reference to another database inside trigger).

Can someone help me?

Thank you in advance

Jan
Reply With Quote
  #2 (permalink)  
Old 02-17-06, 05:09
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
At this point of time(or atleast the last time I read the manuals!) you cannot use triggers to update a remote database table.
The alternative is to insert the deleted record into a local table and copy the records to the remote database table on a periodic basis, say, by means of a script or Replication.
HTH
Sathyaram

__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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