osql -E -d databasename -S servername -Q "EXEC msdb.dbo.sp_send_dbmail @profile_name='mail profile' , @recipients='sql_admin@mydomain.co.uk' , @body='message body' , @subject='Alert!' , @importance='High' "
Post a Comment
No comments:
Post a Comment