SQL中SET NOCOUNT的用法

使返回的结果中不包含有关受 Transact-SQL 语句影响的行数的信息。

USE pubs
GO
-- Display the count message.
SELECT au_lname
FROM authors
GO
USE pubs
GO
-- SET NOCOUNT to ON and no longer display the count message.
SET NOCOUNT ON
GO
SELECT au_lname
FROM authors
GO
-- Reset SET NOCOUNT to OFF.
SET NOCOUNT OFF
GO

原文地址:https://www.cnblogs.com/zpq521/p/1241742.html