SET NOCOUNT ON/OFF


当 SET NOCOUNT 为 ON 时,

不返回计数;

当 SET NOCOUNT 为 OFF 时,

返回计数(表示受 Transact-SQL 语句影响的行数)。
如果存储过程中包含的一些语句并不返回许多实际的数据,则该设置由于大量减少了网络流量,因此可显著提高性能.

原文地址:https://www.cnblogs.com/liuyaozhi/p/4896075.html