0

我正在尝试通过执行包含下面提到的命令的 [Main.bat] 来执行位于文件夹中的几个 sql 文件-

for %%G in (*.sql) do sqlcmd /S [Server] /d [database name] -U [username] -P [Password] -E -i"%%G" pause

但面对这个问题——

Sqlcmd: The -E and the -U/-P options are mutually exclusive.

有什么建议吗?

4

0 回答 0