Automatically send email based on criteria in SQL 2000 database
Posted on 2005-03-05
I'm trying to figure out the best way to do this. I have a Contracts Database in SQL 2000 where I have all of our contracts info of our company stored. e.g. Licensor name, Contract Type, Description, commencement date, expiration date, the path to the scanned contract (adobe acrobat) and the email address of the person that needs to get an email when the expiration date of the contract approaches. I thought about a VB script or program that is scheduled in the "Scheduled Tasks" of Windows 2000 that runs on a daily basis that reads my contracts database and compare the expiration date to todays date and sends an alert email to the email address stored in the database. Is this the best approach? I'm not that familiar with VB. Can someone help me with a sample VB code of doing this? Thanks a lot in advance.