Solved

replication - alerts?

Posted on 2016-11-26
4
36 Views
Last Modified: 2017-01-17
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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 78

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 78

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 28

Assisted Solution

by:Pawan Kumar
Pawan Kumar 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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