Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distortion of the "@query" results in "sp_send_dbmail" HTML

Status
Not open for further replies.

aomara

MIS
Nov 18, 2002
48
0
0
LY
I am using "sp_send_dbmail" to send Email notifications form the database which is SQL Server 2005.

When the Email is sent in TEXT format (Parameter @body_format = 'TEXT'), the result of the parameter "@query" appears good in a tabular format in the email body.

But the problem is that when I change Email body format to be HTML (@body_format = 'HTML'), I find the result of the "@query" is distorted and all the records is fomated in one text line without any sperator between records.

Can any one tell me how to format the result of the Query ?
 
Thanks John.

Actually I am searching for formating the results of parameter "@query" which is evaluated during the runtime.

I would like to know how to get access to these results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top