ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1727
Number of posts: 3292

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Calendar Reminder about event by email !!! HELP Posted by ksustep on 20 Dec 2004 at 8:58 PM
Hey guys, i need help of how to create a reminder of any upcoming events for my Calendar application which i create using ASP.NET
i would like fo user to get notification right before an event.
please help me.
Report
Re: Calendar Reminder about event by email !!! HELP Posted by iwilld0it on 21 Dec 2004 at 6:50 AM
: Hey guys, i need help of how to create a reminder of any upcoming events for my Calendar application which i create using ASP.NET
: i would like fo user to get notification right before an event.
: please help me.
:

Well it depends on what database. If you are using SQL Server, you can set up a scheduled job whih is capable of running TSQL script or even VBScript. Most likely you would use the job to execute a VBScript that opens a CDO object and use it to send e-mail to all users that match a database query.
Report
Re: Calendar Reminder about event by email !!! HELP Posted by ksustep on 21 Dec 2004 at 2:59 PM

:
: Well it depends on what database. If you are using SQL Server, you can set up a scheduled job whih is capable of running TSQL script or even VBScript. Most likely you would use the job to execute a VBScript that opens a CDO object and use it to send e-mail to all users that match a database query.
:
i am using SQL database. do you know any VBScript i can use? do you even know anything about SQL trigger, is it possible for me to do it. will it do what i want, and if it will how should i do it? do you know the script?
thanks for your answer
Report
Re: Calendar Reminder about event by email !!! HELP Posted by iwilld0it on 22 Dec 2004 at 7:00 AM
Off hand, I do not know of any VBScript. However, the VBScript will use ADO to open a database connection, create a ADO command, which will execute a SQL command that returns a Recordset of scheduled events. The VBScript will read each record in the recordset. Each record should have a database column with the e-mail address of the person who scheduled the project. You will then create CDO objects (e-mail objects built into Windows) and send a e-mail message to each e-mail address. Of course the body of the e-mail, should contain the detail of the event.

You want to use a SQL Job not a trigger. A Job runs on a time interval you specify, whereas a trigger runs when either a DELETE, INSERT, or UPDATE SQL statement is run.

NOTE: The the size of the VBSript is limited within the SQL Job. SO be as concise as possible.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.