I have a SQLServer 2000 table that is only populated with data when an error occurs. The population of this table occurs in a DTS package that is scheduled to run nightly.
I am in the process of creating another DTS package that will be run as part of this same job. I want this new DTS package to generate a txt file with the rows from this error table, and send an email. I have set up the DTS package to do this (ie. load tbl into txt file, email txt file).
QUESTION: Is it possible to make the generation of this txt file or the sending of this txt file CONDITIONAL on whether the tbl is empty? Ie. if the tbl is empty, I do not want to send the email.
Thanks in advance.
I am in the process of creating another DTS package that will be run as part of this same job. I want this new DTS package to generate a txt file with the rows from this error table, and send an email. I have set up the DTS package to do this (ie. load tbl into txt file, email txt file).
QUESTION: Is it possible to make the generation of this txt file or the sending of this txt file CONDITIONAL on whether the tbl is empty? Ie. if the tbl is empty, I do not want to send the email.
Thanks in advance.