Re: NET SEND through xp_cmdshell
From: Michas Konstantinos (anonymous_at_discussions.microsoft.com)
Date: 03/05/04
- Next message: Louis Davidson: "Re: Removing triggers"
- Previous message: Jacco Schalkwijk: "Re: Security Issue"
- In reply to: Tibor Karaszi: "Re: NET SEND through xp_cmdshell"
- Next in thread: Eric Sabine: "Re: NET SEND through xp_cmdshell"
- Reply: Eric Sabine: "Re: NET SEND through xp_cmdshell"
- Reply: Tibor Karaszi: "Re: NET SEND through xp_cmdshell"
- Messages sorted by: [ date ] [ thread ]
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.
>>
>
>
>.
>
- Next message: Louis Davidson: "Re: Removing triggers"
- Previous message: Jacco Schalkwijk: "Re: Security Issue"
- In reply to: Tibor Karaszi: "Re: NET SEND through xp_cmdshell"
- Next in thread: Eric Sabine: "Re: NET SEND through xp_cmdshell"
- Reply: Eric Sabine: "Re: NET SEND through xp_cmdshell"
- Reply: Tibor Karaszi: "Re: NET SEND through xp_cmdshell"
- Messages sorted by: [ date ] [ thread ]