SP_WHO3 email

  • I've created a process where I execute SP_WHO3 and email it's output. SP_WHO3 also contains the code (dbcc inputbuffer spid) currently being executed by each process. That output derived column is variable length.

    Regardless if I create the output file as TXT, XLS or CSV, the formatted columns are totally misaligned. Making the output unreadable.

    Does anyone have any thoughts on how this can be fixed?

    ...thanks in advance

  • You can make use of the -W switch in the sqlcmd utility to remove trailing spaces.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

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

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