Groups | Blog | Home
all groups > sql server replication > may 2007 >

sql server replication : Do triggers fire in the mirror database?


Steve Troxell
5/17/2007 11:08:01 PM
Prior to today, I've done nothing with mirroring. Two of us have
independently setup a mirroring scenario with triggers in the principal and
mirror databases. The triggers write to a separate, non-mirrored database
(identical copies on the principal server and the mirror server).

In both cases the triggers will fire in the principal database, but not in
the mirror database. Is this expected behavior for mirroring? It doesn't seem
to matter whether the NOT FOR REPLICATION option is on the trigger or not.

I scoured the documentation and the internet but could find no reference to
this. So I have to wonder if we're just missing something.

Steve Troxell
5/18/2007 9:48:01 AM
My impression from more research today is that the NORECOVERY state of the
mirror database probably precludes triggers firing in that database. Just
hoping for some concrete confirmation.

[quoted text, click to view]
LHumphries
5/18/2007 4:29:49 PM
Steve,

Due to the fact that mirror databases are not in a read/write state, I
believe triggers will not be able to fire.

Leonard



[quoted text, click to view]
AddThis Social Bookmark Button