Can you please suggest how to extract sqlcmd output to multiple files?
sqlcmd -E -S server -d master -Q "exec master..proc" -o "D:\out\file.sql" -o "\\servername\logins\file.sql"
This throws an error :
Sqlcmd: Option '-o' cannot be specified multiple times.'
Kindly suggest an alternate workable method.