I would like to convert the below into VisualCron Tasks.
sqlcmd -U MYUSER -P MYPASS -S MYSQLINSTANCE -d MYDB1 -Q "EXEC sp_MYSTOREDPROC" >> \\SERVER\FOLDER\MYOUTPUT.CSV -W -s"," -w 999 -h -1
sqlcmd -U MYUSER -P MYPASS -S MYSQLINSTANCE -d MYDB2 -Q "EXEC sp_MYSTOREDPROC" >> \\SERVER\FOLDER\MYOUTPUT.CSV -W -s"," -w 999 -h -1
sqlcmd -U MYUSER -P MYPASS -S MYSQLINSTANCE -d MYDB3 -Q "EXEC sp_MYSTOREDPROC" >> \\SERVER\FOLDER\MYOUTPUT.CSV -W -s"," -w 999 -h -1
I've tried various task combinations but I always end up with extra instances of column headers in the output file.
I would like to only have 1 instance of the column header in the file output.
R