I have a SQL Server that I am using for building and distributing reports. I have built all the packages for importing data as needed as SSIS packages. These reports only need to be run after the data has been imported. I have built my SSIS packages to check and make sure that the day isn't a holiday by comparing the date to a table that contains holidays. This way my data is only imported on business days. The problem is, my report subscriptions are set to run at a specific time Monday – Friday. How can I programmatically run the subscription at the end of my import, so that it only runs on the days that the import runs and not on the holidays?
Sql-server – Prevent Subscription to report from running on a holiday
sql serverssisssrsvisual-studio-2013
Related Question
- Sql-server – Encrypt/Decrypt output & input for SSIS task
- SSRS Subscription Error: “Failure sending mail: Report processing has been canceled by the user. Mail will not be resent.”
- Working SSIS package fails as a job, probably due to data flow connection
- User unable to edit a subscription after migration of SSRS from 2008 R2 to 2017
- Sql-server – Prod environment uses a different SSIS version to Dev when running a legacy SSIS package
- Sql-server – Why am i getting a truncation error when running a SSIS package on the sql server agent, but not when i manually run it
Best Answer
You can have your 1st job step as
The second step is to run the SSIS package only if the above condition is FALSE. If the above step is true meaning if it is a holiday as per your HOLIDAY Table, then it should silently fail.