Again one of the simple things, maby because I'm to leasy to remember of that I don't like to start profiler each time, or maby because you who did find this blog was just needing it.
INNER JOIN msdb.dbo.sysmail_server s
ON a.account_id = s.account_id
Hope you enjoy this blog! When you have comments, better solution and recommendation I like to hear from you. Dynamic Intelligence | LinkedIn | Blog | Twitter