CrystalVis
Technical User
I'm desinging a DTS package in SQL Server 2000 to extract data and the pump the result out to an excel file. I'm stuck at a step where I have to read the excel file to determine who the file will be sent to. For example, if there are records in the file, then email the file to John Doe. If there is no record, send the file to Jane Doe. I'm using ActiveX Script Task to send the email with the excel file as an attachment. Can you help me with the script to read the excel file something like:
if excel.rowcount = 0 then send email to Jan Doe
else if excel.rowcount > 0 then send mail to John Doe
end if
I don't know vbscript. If you can give me and example that would be greatly appreciated.
if excel.rowcount = 0 then send email to Jan Doe
else if excel.rowcount > 0 then send mail to John Doe
end if
I don't know vbscript. If you can give me and example that would be greatly appreciated.