Groups | Blog | Home
all groups > sql server replication > july 2005 >

sql server replication : alter replication triggers


mgarner1980
7/28/2005 2:37:24 PM
I have a customer application where I utilize merge replication between
sqlserver2000 and pocketpc's that are running sqlserverce2.0 (vb.net 2003).

It appears that the customer has some tables that they use to keep track of
who modifies the data in certain tables. they want the same functionality
from me.

Since I'm utilizing replication I'm not 100% sure how to accomplish this.

I looked at the trigger that replication creates for on insert . I was
thinking I could add the code necesary to populate the log table there, but
am afraid of screwing up the replication.

I'm not very strong on triggers, anybody have any ideas/suggestions?

Thanks

Paul Ibison
7/28/2005 9:02:47 PM
In SQL Server 2000 you can have multiple triggers on a table, so I'd just
create your own separate ones which can be added using sp_addscriptexec or
as part of the article's properties.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button