I am trying to execute several sql files located in a folder by executing [Main.bat] which contains below mentioned command-
for %%G in (*.sql) do sqlcmd /S [Server] /d [database name] -U [username] -P [Password] -E -i"%%G"
pause
But facing this issue-
Sqlcmd: The -E and the -U/-P options are mutually exclusive.
Any suggestion?