Solved

replication - alerts?

Posted on 2016-11-26
4
20 Views
Last Modified: 2016-11-28
Hi experts

The query is about how to create email alerts that are triggered in case of errors in the replication of data between two databases.
The scenario is as follows:
The replication scheme has been defined using
1. a publisher located on the physical server Srvsql1
2. A subscriber located on the physical server Srvsql2
3. Only the data of a set of tables from the BD_1 to the BD_2

What is required is to define alerts to be able to notify the dba when the replica is dropped or an error occurs in the synchronization of data and some error message that brings us closer to detecting the reason for the error.
0
Comment
Question by:enrique_aeo
  • 2
4 Comments
 
LVL 76

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 41902657
It is configurable as part of the subscriber, publisher, distributor jobs to trigger alerts.

You need to configure dbmail, operator/s to whom the alerts will be sent.


If possible, gave iis SMTP I stalked so your SQL will use the local SMTP versus attempting to connect to another...........

Others will likely provide more detailed suggestion should the generic reference is insufficient.
0
 

Author Comment

by:enrique_aeo
ID: 41903105
can you give me an URL?
0
 
LVL 76

Accepted Solution

by:
arnold earned 250 total points
ID: 41903134
See the following link https://msdn.microsoft.com/en-us/library/ms152496(v=sql.105).aspx for replication alerts.
0
 
LVL 17

Assisted Solution

by:Pawan Kumar Khowal
Pawan Kumar Khowal earned 250 total points
ID: 41903635
Just to add to the above ans. <<nopts>>

1. Below url will give you the alert list and how to configure the alerts. <<This url is already mentioned by Arnold sir above.>>
https://msdn.microsoft.com/en-us/library/ms152496.aspx

2. Below url will give you the details about the alert and what causes that alert to fire with messageId and other details.
https://msdn.microsoft.com/en-us/library/ms151752.aspx

Configuring SQL Server Agent Alerts - Excellent article by Tim Radney <<SQL Skills>>
https://sqlperformance.com/2015/02/sql-alert/sql-server-agent-alerts

Hope it helps !
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now