Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 NOT FOR REPLICATION question

Author  Topic 

Pan Ziuzia
Starting Member

1 Post

Posted - 2003-03-06 : 09:05:17
Hello!
Suppose, I have some NOT FOR REPLICATION trigger on some table. This trigger is NOT fired only when replication agent is modifying data in the table. Does any body know, how MS SQL Server detect connected replication agent and what replication agent must do for do not fire NOT FOR REPLICATION trigger?
Thanks.

chadmat
The Chadinator

1974 Posts

Posted - 2003-03-10 : 23:54:42
NOT FOR REPLICATION applys to how identity columns are handled during replication. It has nothing to do with triggers.

-Chad

Go to Top of Page

PiecesOfEight
Posting Yak Master

200 Posts

Posted - 2003-03-17 : 11:39:40
The way in which SQL Server determines that a replication agent is performing an operation is not documented. NFR (Not for Replication), however, does apply to triggers as well as identity columns. BOL isn't very clear on this, but if you check CREATE TRIGGER, you will see an NFR option.

Go to Top of Page

chadmat
The Chadinator

1974 Posts

Posted - 2003-03-17 : 15:44:56
You are right. I guess you learn something new everyday.

I knew there was a reason I typically stay out of the Replication forum.

-Chad

Go to Top of Page
   

- Advertisement -