Re: NET SEND through xp_cmdshell

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Michas Konstantinos (anonymous_at_discussions.microsoft.com)
Date: 03/05/04


Date: Fri, 5 Mar 2004 08:11:00 -0800


Thank you very much for your time,

I executed exactly as you said but it still doesn't work.

>-----Original Message-----
>I don't think you have the proper syntax for the NET
SEND command. First,
>don't enclose strings in TSQL using double-quotes, use
single-quotes.
>Below worked fine on my machines (TIBDELL is the machine
name):
>
>EXEC master..xp_cmdshell 'net send TIBDELL "hello"'
>
>--
>Tibor Karaszi, SQL Server MVP
>http://www.karaszi.com/sqlserver/default.asp
>
>
>"Michas Konstantinos"
<anonymous@discussions.microsoft.com> wrote in message
>news:77f001c402bc$714aa100$a301280a@phx.gbl...
>> Hello All,
>>
>> I execute this:
>> exec master..xp_cmdshell "net send MYSERVER Testing NET
>> SEND Through SQL Server"
>>
>> I get the following error:
>> An error occurred while sending a message to MYSERVER.
>> NULL
>> The message alias could not be found on the network.
>> NULL
>> More help is available by typing NET HELPMSG 2273.
>> NULL
>> NULL
>>
>> if i run the "net send" command from command window it
>> succeed.
>>
>> Thanks in Advance.
>>
>
>
>.
>