Hi,
I have a job which have 1 step for sending mail through sp_send_dbmail .
its working smothly with out @query in Job.when i use @query Parameter then Job failed with
Error "Probably invalid parameter [SQLSTATE 42000][error 22050].
Please provide solution.