I have a SSIS package that queries password age of SQL accounts and send an email with the query results if rowcount >0. When I execute the package manually it returns 10 results and emails appropriately. However, when I let the agent run the job It sends the email with 0 rows. I pulled the tsql out of the SSIS package and ran it as a job using the TSQL and got the same result 0 rows. Anyone know what me be causing this? I am trying to add the code block but the site doesn't seem to want to accomodate me.
Thanks