Sql-server – Suppress SQLCMD messages

sql serversqlcmd

Would it be possible to suppress all sqlcmd messages output to the cmd window?

I am running a large script and it seems to be slowed down a lot with all the Processed XXXX total records messages.

The script is over 4Gb so there is a large amount of data.

Best Answer

At the top of the script put the following

SET NOCOUNT ON

That will hide the n rows effected messages.