Hi a_pathak,
Thanks for your personal message. I'll answer here instead, if you don't mind.
With regards to your answer to Peter, I think you're the one that got it all wrong. Or at least partly.
You're trying to use ASP for something that it isn't designed for. You can't have an ASP page repeatedly read recordsets, and you can't really have the page automatically send an e-mail when the 15 minutes have passed. But most importantly, you can't have the page
continue to read the database when the user has closed the browser window.
To repeat your own words: you "need a process that keeps reading this recordset repeatedly". ASP is a one-hit application: you request a page, the page is constructed at the server and then sent to the client / browser where it is displayed. That's it.
I think we have had this all before in these threads:
http://p2p.wrox.com/topic.asp?TOPIC_ID=11315
http://p2p.wrox.com/topic.asp?TOPIC_ID=11047
And the recommendations were: use something that runs on the server, checks what it needs to check and does what it needs to do.
So, from what I can see, your options are:
1. Create a Windows Service Application. This app will start when Windows starts, and continuously checks the database.
2. Use the SQL Server Agent in combination with DTS. Create a package that does what it needs to do, and schedule it with SQL Server agent.
3. Use Notification Services, as suggested by Joe. Read the docs for Notification Services; it's not only for .NET.
4. Create a custom application, VBScript / WSH script page and schedule that using AT or the Windows scheduler. Have it fire every minute, and have it send out e-mail to customers of expired complaints.
If this is not what you want, you either don't want to listen to solid advice from lots of people on this forum [read: stubborn ;)], or you're trying to design and create the impossible, or you're missing some important base concepts of the technologies you insist to work with. This may sound a bit harsh, but that's not my intention. I am just trying to clarify your options.....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.