SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Have You Been Told Today


Have You Been Told Today

Author
Message
frankl
frankl
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 3
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/floschiavo/haveyoubeentoldtoday.asp



George Oakes
George Oakes
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 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


Tim OPry
Tim OPry
Mr or Mrs. 500
Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)

Group: General Forum Members
Points: 578 Visits: 247

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.





Craig A. Silvis
Craig A. Silvis
SSC Veteran
SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)SSC Veteran (252 reputation)

Group: General Forum Members
Points: 252 Visits: 170

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


John Scarborough
John Scarborough
SSC-Addicted
SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)SSC-Addicted (454 reputation)

Group: General Forum Members
Points: 454 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
George Oakes
George Oakes
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 38
Is this a procedure that comes with 2000? if so how do you call it?
jereme.guenther@gmail.com
jereme.guenther@gmail.com
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1495 Visits: 194
I too use the CDO object, I tried this net send and received back the message that "sending is no longer supported".
John O'Brien-271326
John O'Brien-271326
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 8
How did you extend this to SMS yourself ??
Tim OPry
Tim OPry
Mr or Mrs. 500
Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)

Group: General Forum Members
Points: 578 Visits: 247

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.





Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search