I am try to run a report every hour and send the results to a csv file. I have scheduled the job is SQL server agent but I cannot seem to be able to spool the records to an excel file(or any file).
I come from Oracle background and below is the Oracle equivalent for what I am trying to do.
Spool output_file.csv
Select * from emp;
spool off
Gasciero