How can I export an Excel workbook from a stored procedure to multiple sheets with multiple sql statements?
I am currently using the following statement:
EXEC proc_generate__excel 'db', 'temp',@filename, @SeqNo, @ext, @sqlorder
It will create three Excel workbooks if there are three sql statements.
How can I export data from three sql statements to three sheets in one Excel workbook ?
source share