【发布时间】:2012-02-06 18:37:57
【问题描述】:
我正在尝试使用 sqlcmd 从文件中运行 sql 脚本,使用以下命令:
sqlcmd -S <server> -d <database> -i <input file> -o <output file>
-U <user> -P <password>
我运行我的 sql 文件并输出到日志文件。
问题是这会将sqlcmd 的输出更改为文件.. 我也想将输出也获取到shell。
【问题讨论】:
-
你找到答案了吗?如果你有它,请在这里回答,并回答我的问题:stackoverflow.com/questions/9319025/… 所以如果它有效,我会投票赞成你的答案。谢谢! :)
-
@Leandro 抱歉还没有找到答案....