Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Create A Custom alert

$
0
0

Hi,

Recently I noticed that the state of some of my databases have changed unexpectedly.

So I need that if the following query returned any row ,then an email must be sent to my outlook account to show me the list of those databases.

select name,recovery_model_desc,recovery_model
from sys.databases
where recovery_model_desc = 'SIMPLE'
Please Help me!



Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>