Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Forum Post: RE: Complete Result Set Variable in E-mail

$
0
0
Hi Batman, In Automation when you ask for the variable value of a SQL type variable, Toad returns the value from the first row and column of the result set. However, you can use the Select to File activity to create an HTML file and then use this as the body of an email. If this workflow is an option for you, here are the instructions. Add a Select to File activity to your script and add your query to this activity. Select HTML as the export file type. Add a Send Email activity to your script. In the Send Email activity, in the Use file for body field, select the HTML file exported in the Select to File activity. You might need to run the script once to create the HTML file. Test run your script. The result set should be included in the body of the email.

Viewing all articles
Browse latest Browse all 1315

Trending Articles



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