I have a DTS package that runs a query and creates an output file (with header). I'd like to know if there's a way to modify the package so that the output file is deleted if the query produces zero results.
The reason I'm trying to do this is because the output file gets e-mailed to me to every day (per a batch file that sends out an e-mail upon successful completion of the DTS package). I'd only like to get the e-mail if there are results in the output file (ignoring the header). Any ideas?
The reason I'm trying to do this is because the output file gets e-mailed to me to every day (per a batch file that sends out an e-mail upon successful completion of the DTS package). I'd only like to get the e-mail if there are results in the output file (ignoring the header). Any ideas?