Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6196927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:43:43+00:00 2026-05-24T03:43:43+00:00

Server Version: SQL Server 2008R2 Client Version: SQL Server Express 2008R2 I have been

  • 0

Server Version: SQL Server 2008R2
Client Version: SQL Server Express 2008R2

I have been encountering what appears to be locking issues when I run my merge replication process. It appears to be when a change is made on the subscriber and sync’d with the publisher. I am positive is coming from the triggers because it is appearing that they are firing on the publisher again and probably trying to send data down to the subscribers again. I have added “NOT FOR REPLICATION” to the triggers, but that doesn’t seem to be helping. I also researched and tried adding the below clause as well.

DECLARE @is_mergeagent BIT

SELECT @is_mergeagent = convert(BIT, sessionproperty('replication_agent'))

IF @is_mergeagent = 0 --IF NOT FROM REPLICATION

That didn’t seem to help either. How do you handle Merge Replication with Insert / Update triggers? Can I prevent them from “Double” firing?

Always appreciate the info.

–S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:43:44+00:00Added an answer on May 24, 2026 at 3:43 am

    Not sure about triggers firing but SESSIONPROPERTY will give NULL here. So the subsequent test always fails.

    <Any other string> [gives] NULL = Input is not valid.

    You probably mean APP_NAME

    This should at least assist troubleshooting…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Oracle server (version 9, I believe) and a MS SQL server
I have an old server with a defunct evaluation version of SQL 2000 on
We have a production SQL Server 2005 database server with the production version of
version:SQL Server 2008 R2 I have granted a user the ability to EXECUTE and
SQL Server Version 2000. We've a bunch of desktops talking to MSSQL Server. When
I have CruiseControl.NET Version 1.4 set up on my development server. Whenever a developer
I have downloaded MS SQL Server Report Builder 3.0 CTP recently. I am bit
How to restore a higher version SQL Server database backup file onto a lower
In SQL Server 2017, you can use this syntax, but not in earlier versions:
So we decided to go with visual studio team foundation server for version control,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.