Solved

replication - alerts?

Posted on 2016-11-26
4
30 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
  • 2
4 Comments
 
LVL 77

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 77

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 24

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

20 Experts available now in Live!

Get 1:1 Help Now