Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20693

Re: SQL Auto close alert not passing ${DatabaseName} in alert message

$
0
0

Thanks. got it to work correctly with this query:

 

if exists(select top 1 * from sys.databases where is_auto_close_on = 1)

  select COUNT(*),name

  from sys.databases

  where is_auto_close_on = 1

  group by name

else

  select 0, '';


Viewing all articles
Browse latest Browse all 20693

Trending Articles



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