SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Distribution Agent reports the transactional replication latency incorrectly


Distribution Agent reports the transactional replication latency incorrectly

Author
Message
Matthew Darwin
Matthew Darwin
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1301 Visits: 878
Hi All,

I'm currently experiencing problems with latency alerts on my transactional replication as described in this article:-

http://support.microsoft.com/kb/2727217

However, I'm at a loss as to what is meant in the workaround "1.Create a second identical alert that detects a smaller latency value (for example, 20,000 milliseconds). "

If I try and create a second alert, say using the following script:-

EXEC msdb.dbo.sp_add_alert @name=N'Replication Warning: Workaround for inaccurate latency reports', 
@message_id=14161,
@severity=0,
@enabled=1,
@delay_between_responses=30,
@include_event_description_in=1,
@category_name=N'Replication',
@job_id=N'00000000-0000-0000-0000-000000000000' --insert job id for tracer token insertion here



I receive the following error:-

Msg 14501, Level 16, State 1, Procedure sp_add_alert_internal, Line 163
An alert ('Replication Warning: Transactional replication latency (Threshold: latency)') has already been defined on this condition.

Has anyone tried fixing this problem in this manner?

Cheers,

Matthew

Follow me on twitter @EvoDBACheck out my blog Natural Selection DBA
MyDoggieJessie
MyDoggieJessie
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12606 Visits: 7444
In order to get around this you need to disable the existing alert. It will not allow you to have multiple alerts for the same Error Number (14161)

______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience" ;-)
Matthew Darwin
Matthew Darwin
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1301 Visits: 878
Hm, ok well in that case, the work around really doesn't make any sense, because it requires having two alerts set up for the same error?

"When the second alert is triggered by an incorrect latency value, the execution of this procedure will clear the problem. If the latency value is correct, the latency will continue to increase past 30,000 milliseconds. Therefore, the first alert is triggered correctly, and you receive notification of the correct latency value."

I have to admit, I'm a little confused. Ermm

Follow me on twitter @EvoDBACheck out my blog Natural Selection DBA
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search