About 52 results
Open links in new tab
  1. sql - SET NOCOUNT ON usage - Stack Overflow

    Sep 27, 2009 · When SET NOCOUNT is ON, the count (indicating the number of rows affected by a Transact-SQL statement) is not returned. When SET NOCOUNT is OFF, the count is returned.

  2. sql server - Why do we use the SET NOCOUNT ON; along with the …

    Nov 12, 2019 · SET NOCOUNT ON - 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 …

  3. sql server - What is the advantage of using "Set NOCOUNT ON" in …

    Jul 1, 2016 · SET NOCOUNT ON prevents the sending of DONE_IN_PROC messages to the client for each statement in a stored procedure. For stored procedures that contain several …

  4. Is "SET NOCOUNT OFF" necessary in a stored procedure?

    48 set nocount on will disable the X rows affected. message SQL returns. This message is suppressed, in some cases, due to undesired effects with the client executing the stored proc. …

  5. sql server - SET NOCOUNT ON Donde usar? Otro método para la ...

    Sep 14, 2021 · For stored procedures that contain several statements that do not return much actual data, or for procedures that contain Transact-SQL loops, setting SET NOCOUNT to ON …

  6. sql - SET NOCOUNT OFF or RETURN @@ROWCOUNT? - Stack …

    Jun 28, 2015 · I am creating a stored procedure in Sql Server 2008 database. I want to return the number of rows affected. Which is a better option SET NOCOUNT OFF or RETURN …

  7. What are the advantages and disadvantages of turning NOCOUNT …

    Jul 19, 2017 · 19 From SQL BOL: SET NOCOUNT ON prevents the sending of DONE_IN_PROC messages to the client for each statement in a stored procedure. For stored procedures that …

  8. Where exactly to set NOCOUNT ON in stored procedure?

    Feb 18, 2014 · ALTER PROCEDURE dbo.mySP @param1 AS SET NOCOUNT ON SELECT f1 FROM foo WHERE f2 = @param1 Does it make a difference if NOCOUNT is set on before or …

  9. sql server - how to SET NOCOUNT ON for all queries - Stack …

    May 28, 2018 · I have a complex application with many SQL queries. I recently found that SET NOCOUNT ON improves the performance and bandwidth of server when count is not needed. …

  10. sql server 2005 - Does SET NOCOUNT ON really make that much …

    Sep 11, 2015 · TSQL NOCOUNT should be set as needed by the code in the data access layer. Just like transactions and locking levels. Setting these things every time in the executing SQL …