Re: Results of Altering Trigger NOT FOR REPLICATION

From: michelle (michelle_at_nospam.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 15:06:14 -0500

Thanks. That's pretty much what MS said. We already had articles for the
audit tables and they are therefore being kept in synch that way. We have
altered the triggers so that they are NOT FOR REPLICATION.

"Paul Ibison" <Paul.Ibison@Pygmalion.Com> wrote in message
news:OE933NypEHA.3396@tk2msftngp13.phx.gbl...
> Michelle,
> altering your triggers and setting them to NOT FOR REPLICATION will mean
> that they won't fire when the data change originates from the
> synchronization process. However sometimes you want the data to be
> consistent between 2 tables eg perhaps you have TableA which has an audit
> trigger to update TableB. In this case the standard way round this is to
set
> the trigger to NFR and replicate both tables. If there is a PK-FK
> relationship at work, you might need to set the FKs to NFR also, because
the
> parent might be processed after the child record.
> HTH,
> Paul Ibison
>
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>



Relevant Pages

  • Re: Replication, DTS, Triggers?
    ... If it goes the way I would hope, we would do incremental pulls of ... your saying it sounds like replication is the best starting point. ... > DTS is a great tool for pulling stuff in and making some (hopefully not ... > I'd avoid triggers if possible but that's just me. ...
    (microsoft.public.sqlserver.replication)
  • Re: Replication and normal trigger
    ... There are no triggers on plain vanilla transactional replication. ... Director of Text Mining and Database Strategy ... RelevantNOISE.Com - Dedicated to mining blogs for business intelligence. ...
    (microsoft.public.sqlserver.replication)
  • Re: Replication Triggers
    ... you do not want to "mess" with the triggers that replication creates. ... evaluate replication blob triggers and decide whether they need adjustment ...
    (microsoft.public.sqlserver.replication)
  • Re: Replication and normal trigger
    ... join sysobjects on sysobjects.parent_obj =objid ... returns the set of replication triggers on my merge articles. ... Director of Text Mining and Database Strategy ... I think the requirement here is only for system triggers. ...
    (microsoft.public.sqlserver.replication)
  • Re: Audit logging an adp
    ... Allen Browne's audit code. ... Some people may be tempted to suggest using SQL Server triggers, ... but without an adequate security model your audit trail ...
    (microsoft.public.access.adp.sqlserver)