sp_send_dbmail

  • Hi

    when I am using @query_no_truncate=1 in sp_send_dbmail

    I am not getting query header in the attached files.

    As per msdn, if we use @query_no_truncate=1 then, column headers will not be displayed.

    But I dont want query to be truncated and at the same time I want column headers in the attached file.

    What is the work around for this ?

    Your help is appreciated

    Thanks in advance

  • can you work our an alternative ?

    e.g; bcp out the wanted query to a file and send that file attached to a dbmail ?

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply