Prevent rows affected entry in file export from SSMS

淺唱寂寞╮ 提交于 2019-12-24 03:43:16

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!