Saturday, February 22, 2014

What is SET NOCOUNT (Transact-SQL) in Sql Server

SET NOCOUNTON:-- 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.


When SET NOCOUNT is ON, the count is not returned. When SET NOCOUNT is OFF, the count is returned.
The @@ROWCOUNT function is updated even when SET NOCOUNT is ON.

No comments:

Post a Comment