Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

send net send messages from SQL Server 2008

Posted on 2010-11-23
9
Medium Priority
?
1,451 Views
Last Modified: 2012-06-27
I have trigger on new row insert which send net send message to client computers. It was working perfect on SQL Server 2000, now we migrate to SQL Server 2008 and my trigger is not working at all I cant send net send messages from SQL Server 2008. Is there any way that I can have messaging like on SQL 2000. I am using Windows Server 2008 32-bit, client computers have WinXP and Win7 OS.

Thanks
0
Comment
Question by:kahvedzic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34196444
net send has been replaced, meanwhile, by msg
http://technet.microsoft.com/en-us/library/cc771903%28WS.10%29.aspx
0
 
LVL 1

Author Comment

by:kahvedzic
ID: 34196467
I know that but problem is that I cant send messages to WinXP clients with msg.exe
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34196479
then, you have no choice but use some third-party lan messaging tool, which you will need to install on all the required computers (via group policy, for example)
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 1

Author Comment

by:kahvedzic
ID: 34196508
OK get that but I cant find any LAN messagin tool that support SQL server, and besides that I dont know how to use it in trigger.Can you help?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34196540
> that support SQL server
all you need is a command line call possibility...

I don't know any, because I never use(d) net send for this kind of messaging, because I only use sms and/or email notifications ...
0
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 34199309
You can use msg.exe to send messages to XP as well, provided you allow remote RPC on the clients as described here:
Allowing Remote RPC
http://technet.microsoft.com/en-us/library/ff710472(WS.10).aspx
0
 
LVL 1

Author Comment

by:kahvedzic
ID: 34203003
Thanks oBdA, just want to check if this is OK in trigger:

in sql server 2000 have:
DECLARE @poruka as char(200)
DECLARE @poruka1 as char(200)
SET @poruka1 = 'net send computer1 ' + ' New text ! '
EXEC master..xp_cmdshell @poruka1, no_output

and in sql server 2008 change it to:
DECLARE @poruka as char(200)
DECLARE @poruka1 as char(200)
SET @poruka1 = 'msg /server:computer1 * ' + ' New text ! '
EXEC master..xp_cmdshell @poruka1, no_output

Is this OK or do I have to change something else?

Thanks
0
 
LVL 85

Expert Comment

by:oBdA
ID: 34203137
Together with the registry change on the clients, that should do the trick.
0
 
LVL 1

Author Closing Comment

by:kahvedzic
ID: 34203242
Thank you very much this was really helpful.

Cheers.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question