Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

sp_send_dbmail doesn't send result set when @query used

$
0
0
Hi All,My issue is the following:O.S. Microsoft Server 2012 R2SQL Server 2014 with mixed autentication mode build 12.0.2269user connected: saprocedure sp_send_dbmail sends an empty body mail when @query parameter is used.--- EXEC msdb.dbo.sp_send_dbmail @profile_name = 'INFO', @recipients = <myemailaddress>, @body = '', @subject = 'subject', @query = 'select idx, id, rtrim(articolo) as articolo, cast(rtrim(errore) as varchar(200))as errore from table';---obviously query works properly if executed.thanks for Your help.Mauro Branca

Viewing all articles
Browse latest Browse all 6525

Trending Articles