all groups > sql server programming > july 2004 >
You're in the

sql server programming

group:

Net send multiple lines


Net send multiple lines Derek
7/28/2004 10:03:05 PM
sql server programming:
I am trying the following code in a trigger.

exec master.dbo.xp_cmdshell 'net send UserName "Test' + char(13) + 'Line2"'

However I can't get it to work.
I have tried.
^T
char(10)
char(13) + char(10)
leaving a line.
leaving a line with the / character
Leaving off the double quotes with all the above options.

Has anyone ever been able to get this to work and how?

RE: Net send multiple lines John Bell
7/29/2004 12:50:35 AM
Hi


I don't think this is possible as the command shell will always take a carriage return as the end of command. You may be able to cludge it by adding alot of spaces.

John

[quoted text, click to view]
Re: Net send multiple lines RADl0PASlV
7/29/2004 2:05:37 PM
[quoted text, click to view]

CHAR(20)

http://www.jsiinc.com/subm/tip6200/rh6240.htm

Tomas

Re: Net send multiple lines Derek
7/29/2004 4:11:45 PM
Char(20) works great!

Thanks a lot.

Derek

[quoted text, click to view]
Re: Net send multiple lines stephen.ward NO[at]SPAM mps.co.uk
7/30/2004 3:52:16 AM
CHAR(20)!!!!!!!!!!!!

Where was you last month?????
I've been tearing my hair out.

Works great by the way.


[quoted text, click to view]
AddThis Social Bookmark Button