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
Solved

send email when there is a new entry in backupset

Posted on 2011-02-16
6
281 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
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

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

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, …
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 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