Solved

send email when there is a new entry in backupset

Posted on 2011-02-16
6
272 Views
Last Modified: 2012-05-11
how can you setup a job to send an email out when there is a new entry in backupset for a particular database and type = 'd' only

thanks
0
Comment
Question by:anushahanna
  • 3
  • 2
6 Comments
 
LVL 4

Assisted Solution

by:ong-hh
ong-hh earned 75 total points
ID: 34912774
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34912923
ong-hh, we need it run after a backup software run a backup file, not after a job
0
 
LVL 4

Expert Comment

by:ong-hh
ID: 34912953
what backup software are you using?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 6

Author Comment

by:anushahanna
ID: 34915688
it does not matter which one- it could be sql 2008 r2 or legato- regardless there will an entry in backupset... and if there is one for
select count(*) from msdb..backupset where database_name = 'tracker' and type='d'
then we need to send an email.
0
 
LVL 4

Accepted Solution

by:
rocky_lotus_newbie earned 425 total points
ID: 34929392
You can create an insert trigger on the backupset table to send an email to you using Database Mail, whenever a record of type D for a particular database is inserted.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34935397
thanks rocky!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Complex SQL script 1 41
TOOLS - convert T-SQL TO PL/SQL 3 23
SQL query with cast 38 42
ms sql + get number in list out of total 7 26
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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