SET NOCOUNT (Transact-SQL) SQL Server 2005 Stored Procedure

No replies
thinker
thinker's picture
User offline. Last seen 5 hours 3 min ago. Offline
Joined: 06/02/2008
Printer-friendly versionPrinter-friendly versionSend to friendSend to friendPDF versionPDF version

When you run stored procedure or queries, you would notice a message on the status bar that shows the number of rows affected. In stored procedure if you set 'SET NOCOUNT ON' then it stops this message from showing and saves substantial amount of time for the run. Reference: http://msdn.microsoft.com/en-us/library/ms189837.aspx

Are we being helpful? If so, please link to us here.