I generate many reports daily which are emailed to clients. To automate the task I run each from the Task Scheduler, but it is getting rather complex.
So, I have created a database and within that I have code to call each report which is required. The code for creating the reports is in a second database. I started by using the Shell command, but that does not wait for the calculation to complete before moving on to the next piece of code. What I need is to generate the report by running the code in the second database (and wait for it to finish) before proceeding with running more code.
I would be grateful for any help.
So, I have created a database and within that I have code to call each report which is required. The code for creating the reports is in a second database. I started by using the Shell command, but that does not wait for the calculation to complete before moving on to the next piece of code. What I need is to generate the report by running the code in the second database (and wait for it to finish) before proceeding with running more code.
I would be grateful for any help.