|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, August 06, 2008 6:41 PM
Points: 3,
Visits: 3
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 25, 2013 7:15 AM
Points: 33,
Visits: 38
|
|
You could also use the extended procedure xp_cmdShell to send the net message. I use the following command in an Execute SQL task object in my DTS packages and you can create others as well for success of failure. The following command tells me that my package is starting. I also have one the tells me when the DTS package completes. This way I have an idea of how long a package is taking to complete. exec master..xp_cmdShell 'Net Send myComputerName Import Store Package Starting', NO_output The only problem with using the xp_cmdShell is that you must have the authority to run the command and a typical user by default does not. You would need to set the access to this extended stored proc to user account that the SQL server Agent is running under. For us it is the administrator account so they do have access to this procedure. Your SQL may be set up differently check with your SQL DBA first. and on another note this procedure can also run other things and can be used for malicious reasons so be careful when setting the security on this procedure. Just my two cents George
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, April 12, 2013 5:54 AM
Points: 159,
Visits: 239
|
|
We use sp_OAMethod to invoke a method on a COM object installed on our SQL server. This COM object has several methods that accepts the params and then sends them in a UDP broadcast on our LAN. The parameters are typically a varchar or 2 and a WORD, which is the messae number/ID. We monitor the broadcasts via a client application which handles the data according to the message id. This is used for everything from updating Calendar information in real time to completion/error notification for tasks. We also have a service that monitors the UDP port for IT specific messages and based upon the time of day/priority will notify staff via email or SMS text to our cellphone.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Monday, December 03, 2012 9:59 AM
Points: 85,
Visits: 117
|
|
You could also use vbscript to send email notification using CDO.Message
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, July 30, 2012 1:23 PM
Points: 290,
Visits: 44
|
|
We use xp_smtp_sendmail to send email notifications. Works great. In the context of this article, it would just be an Execute SQL task.
John Scarborough MCDBA, MCSA
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 25, 2013 7:15 AM
Points: 33,
Visits: 38
|
|
| Is this a procedure that comes with 2000? if so how do you call it?
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Saturday, December 03, 2011 10:08 AM
Points: 769,
Visits: 187
|
|
| I too use the CDO object, I tried this net send and received back the message that "sending is no longer supported".
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 20, 2009 2:40 PM
Points: 2,
Visits: 8
|
|
| How did you extend this to SMS yourself ??
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, April 12, 2013 5:54 AM
Points: 159,
Visits: 239
|
|
We have a table of events/errors that we monitor, one column of which is a bit Column 'IsSMS', another are the email addresses to contact. When events are processed by the service, it does a lookup on the table and if IsSMS is set to True, it sends an email to the specified addresses, which in this case are the cellphone SMS addresses.
|
|
|
|