[dba-SQLServer]xp_sendmail - format output of @query

Joe Rojas JRojas at tnco-inc.com
Thu May 22 09:46:46 CDT 2003


Hi All,

When using xp_sendmail from a stored procedure in SS7, is it possible to
format the output of the query specified in the @query parameter?
Below is what I got in an email by using xp_sendmail. As you can see it is
pretty much useless to the untrained eye.


UserName                       First                          
	Last                           email

	Password             FirstLogin 
 ----------------------------- ------------------------------ 
	------------------------------
----------------------------------------
	-------------------- ---------- 
jrojas                         Joe                            
	Rojas                          jrojas at tnco-inc.com

	041797                        0 


Thanks,
Joe R.



This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.


More information about the dba-SQLServer mailing list