Send an email alert when an last statement of sql query evalutes to true. Uses Jinja Templates from results to render messages.
If an SQL statement evalulates to True, send an alert
Variables
Database where you want to run the script on.
SMTP Server to use
Contents of the email body to be sent.
From
Send email to this address
Subject of the email to be sent
SQL Query/Queries to run. Last statement can return multiple rows and columns. Must have a "sendalert" column which returns True/False. Email will be sent when "sendalert" evaluates to True
SQL Script or steps to run after sending of e-mails. Does not send alerts.
If in your sql you use any parameters then you need to create a parameter list here. To use ranges visit ...