SQL-Server - Stop success message when saving results to file -



SQL-Server - Stop success message when saving results to file -

when running query on sql server , using results file function, sql server automatically adds success message @ end of file looks this:

(2620182 row(s) affected)

with little file, pop open text editor , remove manually, when file millions of records, takes bit more work. utilize grep or sed remove it, that's manual process.

is there way can surpress message showing in saved result set?

add

set nocount on;

before executing query.

sql-server

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -