First of all i read this question: Firebird database replication
But i dont want to replicate...i just want to add the data that had changed on my database to our main database. Any ideas?
AFAICT that's replication too.
You should mark every change of your database and at one time read them and pass them to your other database.
You can mark each record with a logical value Modified=0/1 or with a TimeStamp.
Through triggers you should control this values
trigger before insert
begin
modified = CurrentDateTime;
end
trigger before ubdate
begin
modified = CurrentDateTime;
end
trigger before delete
begin
insert into DELETED_RECORDS (id) values (old.id);
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With