Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
shaneschmidt
Starting Member
17 Posts |
Posted - 2003-09-22 : 02:52:38
|
| How can I get more than 1 notification on net send operators for more than 1 person. Any attempt to do this fails. |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2003-09-22 : 05:50:30
|
| I don't think you can....best bet is a batch file....Dim Message, wshSet wsh = Wscript.CreateObject("Wscript.Shell")Set ArgObj = WScript.Argumentsmessage = InputBox("Please enter your message","Net Send Utility")If message = "" then Wscript.QuitFor i = 0 to ArgObj.count -1 Wsh.run "Net Send " & ArgObj(i) & " " & message,TrueNextPS I saved the file as netsend.vbs and then ranNetsend.vbs steve john fred bill |
 |
|
|
shaneschmidt
Starting Member
17 Posts |
Posted - 2003-09-22 : 19:57:11
|
| Thanks AndrewI will use what you sent me.. but was more concerned with notifying anotherperson at the same time when a job finished in case of holidays. |
 |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2003-09-23 : 06:14:59
|
| the problem with NET SEND is that it only works when the recipients are signed onto the network....and good soul, who signs out and powers off their PC each evening won't see the messages the next morning.you may be better advised to investigate, SQL Alerts and or SQL mail.There are some topics/articles/advice items here that will point you in the right direction.Another method might be to have a 'job-history' table into which every job reports its progress/status...i.e.job a started @ xx.xxjob a finished @ xx.xx + 1job b started @ xx.yyjob c started @ xx.yyjob d started @ xx.zzjob c finished @ xx.yy + 2job d finished @ xx.zz + 3as you can see...job b is still o/s...and if you write a 'job-history reporting' module then your co-worker can determine for themselves when jobs work/fail, without involving/depending on any messaging system....remember the more links there are in a chain, the more points of failure! |
 |
|
|
shaneschmidt
Starting Member
17 Posts |
Posted - 2003-09-23 : 18:38:20
|
| Thanks YakOur job status table is alrady in place and the sql mail is being investigated. Thanks to all that replied. RegardsShane |
 |
|
|
|
|
|