Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Replication / August 2008

Tip: Looking for answers? Try searching our database.

Auto email Transactional replication status.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chen - 19 Aug 2008 16:46 GMT
Hi All,

Currently we are using SQL Server 2005 Enterprise Edition with (SP2). I set
up the auto email to show status of transactional replication that I execute
the following statements: exec distribution.dbo.sp_replmonitorhelppulocation
'publication_name', 'db_name'

The email with attached file contains transactional replication status (1 =
Started, 2 = Succeeded, 3 = In progress, 4 = Idle, 5 = Retrying, and 6 =
Failed) to operators.

I try to modify it when the status equal to 5 or 6 then email to operators.
Otherwise no email goes out.

Can someone help me?

Regards!
Chen
Paul Ibison - 23 Aug 2008 18:15 GMT
Create a temp table and then insert the values into the temp table from the
proc:

Insert into #yourtable (your cols)
Exec distribution.dbo.sp_replmonitorhelppulocation

Then do a select of the status to determine if the email should be sent.

HTH,

Paul Ibison (www.replicationanswers.com)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.