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
Post a Comment