Creating a Non-Replicating Trigger on a Replicated Table

  • Happy Friday Team.

    Anyways, I've got a trigger sitting on a table that fires on Insert, Delete or Update. The trigger then calls into a stored procedure on a separate database (Data Warehouse).

    This works fine on my central database, but the problem is that it is being replicated down to my subscribers, where the Data Warehouse database doesn't exist - so was naturally causing errors.

    I've removed the trigger for now, but does anybody know of a way of setting a trigger to be non-replicated?

    (I have done a web search - but "replication" and "trigger" aren't great things to search for)

    Thanks in advance.

    Ted, London.

  • CREATE TRIGGER YourTrigger ON YourTable

    FOR INSERT

    NOT FOR REPLICATION

    AS

    .....

  • Merci!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply