Is there a way to suppress “x rows affected” in SQLCMD from the command line?

前端 未结 3 484
醉酒成梦
醉酒成梦 2020-12-05 12:48

Is there a way to suppress \"x rows affected\" in SQLCMD from the command line?

I\'m running an MSBuild script and don\'t want it clogging up my log on my build se

3条回答
  •  孤街浪徒
    2020-12-05 13:09

    What about creating a startup script with SET NOCOUNT ON in the script (assign the script to the SQLCMDINI environment variable). http://msdn.microsoft.com/en-us/library/ms162773.aspx

提交回复
热议问题