We currently have one MS SQL 2000 database that has a bunch of our data in it. We currently extract some data out through a VBS script on another machine. This VBS script is almost as old as I am and is showing it's age. It works, but I can't tell you the number of times it's been hacked and slashed to make it work with new updates.
I find myself needing to extract another set of data out of this database. My first initial thought was to copy this VBS script and modify it to suit my needs. But then I paused and thought there's got to be something better. I've got some linux machines with PHP and I've connected it to a MS SQL 2008 R2 machine. But while I know PHP, I'm not sure if it's the best answer.
This script needs the following.
Ability to run on scheduled tasks/crontab
Ability to access MS SQL 2000 database (hopefully upgrading by the end of the year)
Ability to e-mail a "successful run" or "unsuccessful run".
Ability to parse the extracted data as it's kind of "dirty" (remove pieces of information not needed)
Thanks in advance.