Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
EA
Starting Member
19 Posts |
Posted - 2006-07-28 : 03:48:10
|
Hi,I want to send the result of a query in the body of a mail message. I'm using sp_send_cdosysmail.How can I get the query result into the @body variable?Thanks in advance! |
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-07-28 : 08:55:08
|
U may try:results of the query feed to the @body variable by means of a cursor with appropriate seperators for columns & rows. Possibly column Seperated with "Tabs" and rows seperated with "Returns".Srinika |
|
|
|
|
|