Hello,
This is my first post...
I would like to run a stored procedure that accepts a parameter from another query and then loops through and writes all the data to excel. I was using Automate 7 but it was to expensive so i wanted to try WinAutomation. In automate i could put all the results into a dataset and then fill in excel from the dataset. Is this possible in WinAutomation?
Thanks in advance,
Cheers,
RR


Did you try using the "Execute SQL Statement" action? This action allows you to execute a specific SQL statement on a database and retrieve the results in a variable (as a data table). Then, you will not even have to loop through the results to write them to an Excel file (you can if you want to, but it is not your best option): you can just launch an excel file and write the variable that contains the data table directly to a cell (e.g. A1). The results will automatically take their place in the Excel cells.
If you are retrieving your results in a different way (e.g. through a 3rd party application), please let me know in what form you will have them, and I will let you know the best way to store them to Excel.
P.S: If you want your job to be able to get input from external sources (e.g. in the form of command line arguments), you can use the "Get Command Line Arguments" action. This action will retrieve all the information that you will pass as command line arguments to your job if you execute it through the Command Line or if your job is compiled to an executable.
Error is not blindness, error is cowardice
Error is not blindness, error is cowardice