Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Have You Been Told Today Expand / Collapse
Author
Message
Posted Thursday, August 25, 2005 2:37 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, August 6, 2008 6:41 PM
Points: 3, Visits: 3
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/floschiavo/haveyoubeentoldtoday.asp


Post #214112
Posted Thursday, October 20, 2005 5:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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

 

Post #230600
Posted Thursday, October 20, 2005 6:30 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, May 3, 2014 1:28 PM
Points: 160, Visits: 246

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.




Post #230619
Posted Thursday, October 20, 2005 7:01 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, June 12, 2014 2:58 PM
Points: 92, Visits: 170

You could also use vbscript to send email notification using CDO.Message

 

Post #230636
Posted Thursday, October 20, 2005 8:26 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 24, 2014 1:52 PM
Points: 290, Visits: 52
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
Post #230704
Posted Thursday, October 20, 2005 8:44 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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?
Post #230707
Posted Thursday, October 20, 2005 10:46 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Wednesday, February 5, 2014 8:30 AM
Points: 769, Visits: 191
I too use the CDO object, I tried this net send and received back the message that "sending is no longer supported".
Post #230804
Posted Friday, October 21, 2005 9:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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 ??
Post #231218
Posted Friday, October 21, 2005 9:48 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, May 3, 2014 1:28 PM
Points: 160, Visits: 246

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.

 




Post #231226
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse