NT/2k Services/MAPI/Outlook/SQL Design Issues 
Author Message
 NT/2k Services/MAPI/Outlook/SQL Design Issues

Hello NGs,

Would contributors pls give me the benefit of their experience, on the best way to approach this problem. Specifically, I'm looking at the drawbacks &/or advantages of different software components that might be incorporated to solve this problem:

We have an SQL Server database. I want to construct an "always-on" notification service. Basically, every 15 mins or so, the service will query the database, and if certain conditions are met, will then send a notification to a specified end user. The notification will take the form of an email, which will be sent via our Exchange server.

Questions:

1. My initial thought was to build an NT/2000 service. I would have to do this with VB, but MS obviously caution against using VB apps as services. (srvany & all that.) Can I create an NT service with VC++? I'm not great with VC yet, but I'm learning .....

2. According to MS documentation, I can't use the Outlook library if I want to implement an NT service -- because you cannot always suppress Outlook dialog boxes, which is a No-No for a service. Is there an alternative "silent" library that I can leverage to send messages via Exchange?

3. Do you think I will have to "fudge" it -- and just write a VB Executable, & then schedule it to run every 15 minutes, or something?? I reckon a genuine "service" would be better - but not if means loads of extra development time.

If anybody has some experience with this type of solution pls fill me in -- I want to make sure I get a good plan laid out, that _will_ work, before I try to build something.

TIA

Robert.



Thu, 06 May 2004 10:03:21 GMT  
 NT/2k Services/MAPI/Outlook/SQL Design Issues

robert,

sqlserver provides "job scheduling" which can be set to run at interval. there is really no need for nt scheduler. of course, you can but it seems such a waste of resource.

check out "scheduling jobs" in sql book online for more info on implementation.

-oj


  Hello NGs,

  Would contributors pls give me the benefit of their experience, on the best way to approach this problem. Specifically, I'm looking at the drawbacks &/or advantages of different software components that might be incorporated to solve this problem:

  We have an SQL Server database. I want to construct an "always-on" notification service. Basically, every 15 mins or so, the service will query the database, and if certain conditions are met, will then send a notification to a specified end user. The notification will take the form of an email, which will be sent via our Exchange server.

  Questions:

  1. My initial thought was to build an NT/2000 service. I would have to do this with VB, but MS obviously caution against using VB apps as services. (srvany & all that.) Can I create an NT service with VC++? I'm not great with VC yet, but I'm learning .....

  2. According to MS documentation, I can't use the Outlook library if I want to implement an NT service -- because you cannot always suppress Outlook dialog boxes, which is a No-No for a service. Is there an alternative "silent" library that I can leverage to send messages via Exchange?

  3. Do you think I will have to "fudge" it -- and just write a VB Executable, & then schedule it to run every 15 minutes, or something?? I reckon a genuine "service" would be better - but not if means loads of extra development time.

  If anybody has some experience with this type of solution pls fill me in -- I want to make sure I get a good plan laid out, that _will_ work, before I try to build something.

  TIA

  Robert.



Thu, 06 May 2004 10:16:01 GMT  
 NT/2k Services/MAPI/Outlook/SQL Design Issues
Robert,

The functionality you describe is already available through the SQL Server
Agent. In Enterprise Manager, look under Management | SQL Server Agent. You
can create and schedule jobs and set up alerts for email notification by
clicking your way through the dialogs.

All you need to do is write a stored procedure for your query. When your
certain condition is met, you can raise an error with a specific number that
you have defined ahead of time and for which you have created an alert.
Alternately, if you don't want to use alerts, you can just execute
xp_sendmail in the stored procedure.

Linda


Hello NGs,

Would contributors pls give me the benefit of their experience, on the best
way to approach this problem. Specifically, I'm looking at the drawbacks
&/or advantages of different software components that might be incorporated
to solve this problem:

We have an SQL Server database. I want to construct an "always-on"
notification service. Basically, every 15 mins or so, the service will query
the database, and if certain conditions are met, will then send a
notification to a specified end user. The notification will take the form of
an email, which will be sent via our Exchange server.

Questions:

1. My initial thought was to build an NT/2000 service. I would have to do
this with VB, but MS obviously caution against using VB apps as services.
(srvany & all that.) Can I create an NT service with VC++? I'm not great
with VC yet, but I'm learning .....

2. According to MS documentation, I can't use the Outlook library if I want
to implement an NT service -- because you cannot always suppress Outlook
dialog boxes, which is a No-No for a service. Is there an alternative
"silent" library that I can leverage to send messages via Exchange?

3. Do you think I will have to "fudge" it -- and just write a VB Executable,
& then schedule it to run every 15 minutes, or something?? I reckon a
genuine "service" would be better - but not if means loads of extra
development time.

If anybody has some experience with this type of solution pls fill me in --
I want to make sure I get a good plan laid out, that _will_ work, before I
try to build something.

TIA

Robert.



Thu, 06 May 2004 11:30:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. NT/2k Services/MAPI/Outlook/SQL Design Issues

2. MAPI, CDO, WinXP & Outlook 2k - Internet Only

3. Run my program as service (NT, 2K, XP)

4. some guidance for a newbie designing a database app in SQL Server 2k and VB.Net

5. Help: W2K, IIS, ASP, Component Services, SQL, NT Service and VB

6. Problems with Access/Outlook 2K VBA when run using NT's AT command

7. MAPI with Outlook Express issue

8. Outlook 2000 SP2 & MAPI Issues

9. Need design advice for service mngmnt sftwre based on outlook - access integration

10. Security issues when controlling an NT service

11. Sercurity issue with NT service query/start/stop

12. NT Service and MAPI - vb6

 

 
Powered by phpBB® Forum Software