How to insert a row in a SQL table using Mail & Deploy

How to insert a row in a SQL table using Mail & Deploy

FIRST CREATED ON 4 Aug 2026  I  AUTHOR Emma Camacho

With Mail & Deploy you can add rows to your SQL Table using the EXECUTE CODE action in a Task. In this example, we'll demonstrate how easy it is to do this.

Datasource definition



Task definition



EXECUTE CODE definition


and CODE


EvaluateSqlDatasourceExpression ("xxx.xxx.xxx.xxx\SQLEXPRESS", "insert into Status (id, status) values (4,1)", 0)
another example, this time, using dynamic expressions could be
EvaluateSqlDatasourceExpression ("xxx.xxx.xxx.xxx\SQLEXPRESS", "insert into Status (id, status) values (" & [TaskParameter].[id] & "," & [TaskParameter].[Status] &")", 0)

It is possible to run any queries as long as the user defined in the credentials' Datasource has permissions to run them.
For more information, see EvaluateSqlDatasourceExpression and Execute Code.


Info

Looking for Additional Guidance?


If you require more detailed information or further assistance, please visit our comprehensive Online Documentation. Our resources are designed to help you navigate all features and functionalities effectively.