1. You can write a trigger that will instantly update, insert, delete records on other server.
If two servers are linked it is as easy as on the same server. If not let me know I will give you a solution on how to access one server from another.
2. If you have the same unique ID on both tables you can use it to insert\update\delete like this. Assume you have tables A and B
[PHP]delete from B where ID not in (select ID from A)
update B set
col1 = a.col1,
col2 = a.col2
from A a
JOIN B b on a.ID = b.ID
insert into B Select * from A where ID not in (select ID from B)[/PHP]
What type of changes do you want to track on the second database table?
Inserts, Updates, Deletes?
Are you attempting to create permanent redundancy between both of the
systems? If so, you may want to explore other options.
To expand on what iburyak has already recommended here is an
Example of a Trigger for Inserts -
CREATE TRIGGER tr_trackInserts ON tableOne
FOR INSERT
AS
INSERT INTO Database2.dbo.tableTwo (columnOne, columnTwo, columnThree)
SELECT inserted.columnOne, inserted.columnTwo, insert.columnThree
FROM Database2.dbo.inserted
WHERE BLAH BLAH.... = BLAH BLAH
GO
Try this link and Research triggers:
http://www.sqlteam.com/item.asp?ItemID=3850