Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个更新插入另一个表的表的触发器。此另一个表仅存在于一个位置(该表未复制)。如果我将触发器设置为不用于复制,当复制的数据通过触发器进入表时,我的更新触发器是否仍会触发?这样我就可以将触发器和它插入的表只放在一个位置。
不:这是NOT FOR REPLICATION的要点。来自 MSDN
触发器 当复制代理执行插入、更新或删除操作时,不会执行触发器。
当复制代理执行插入、更新或删除操作时,不会执行触发器。
这里的关键是“复制代理”:这是使触发器不触发的过程