There is a requirement in my project to automate some SQL queries and i did but after that one user came and ask that we do not want 2 separate .csv file we want 1 .csv file with multiple sheets
For eg. suppose there 2 .csv files "Text1.csv" and "Text2.csv" and we are sending this to users but they are coming back asking to do it like a "Text.csv" file with "sheet1" and "sheet2" sheets.
I have been using below
@echo off
cls
@echo *****************************Reports****************************
@echo.
sqlcmd -h-1 -S database -E -i "loc.sql" -o "loc2.csv"
sqlcmd -h-1 -S database -E -i "loc1.sql" -o "loc2.csv"
@echo Report is generated
@echo.
Note: I can not use any 3rd party tool like java or jscripts, neither i can use Visual studio for VBS, i have only option with batch cmd file
PS. if there is another kind of script that can write as a batch file without any need of 3rd party tool that will be great