Within SQLMessenger, SQL query results may be converted into either a spreadsheet attachment or an HTML table embedded in email content. These table formats are collectively referred to as Simple Tables.

Convert the results of an SQL query into a simple table
2. The Structure of Simple Tables
In simple tables, the first row is the header; all following rows are data rows.

The structure of a simple table
In SQLMessenger, SQL query results can be converted into Simple Tables.
You may add multiple SQL queries to a single attachment template. SQLMessenger will export the results of each query to a separate worksheet within the generated spreadsheet.

Add multiple queries to a single attachment template

Spreadsheet generated after task execution






Within SQLMessenger, SQL query results can be converted into an HTML Simple Table embedded directly in the email body output by the task.






HTML Simple Table displayed in email body
The Table Style Designer allows you to configure visual attributes of Simple Tables, such as column widths, row heights, cell colors and fonts.

Simple Table Designer
In this dialog box:
|
Use this button to add or remove SQL result columns whenever you modify your underlying SQL query. Any new fields returned by the updated query can be added to or removed from the Simple Table via this control. |
|
Remove fields from the Simple Table. |
|
Move the selected field to the left or right. |
|
When converting the query results into an Excel table, you can click this button to freeze the selected columns. |
|
When converting the query results into an Excel table, you can click this button to freeze the header row. |
|
Display the SQL query results in transposed format. |
|
Set the format for the selected cells. |
|
Set the table width (HTML only), along with other options. |
Dynamically add all SQL fields to the result table |
If this option is selected, the system will add all fields returned by the SQL query to the Simple Table. You can use this feature to dynamically add all columns to the Simple Table. |