问题
How can I prevent entries like this:
(123456 rows affected)
in a text file export at the end of the file. Do not seem to find option. Thanks!
回答1:
You could use:
SET NOCOUNT ON;
SET NOCOUNT
Stops the message that shows the count of the number of rows affected by a Transact-SQL statement or stored procedure from being returned as part of the result set.
Or by enabling the SET NOCOUNT
option via SSMS:
Image source: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b8c99360-780d-4bd7-a919-e02339078976/show-number-of-rows-affected-in-management-studio
来源:https://stackoverflow.com/questions/52905794/prevent-rows-affected-entry-in-file-export-from-ssms