|
Whenever use SQL Server Management Studio and create a new stored procedure, it starts by filling the body of the procedure in with the following line:
Could someone explain to me what that does, when I should be leaving it in my stored procedure, and when I should be removing it?
(comments are locked)
|
|
MSDN tells us that NOCOUNT:
It also tells us when its useful to use it:
So basically it can aid performance when you have a sProc that executes multiple statements, but that don't return a great deal of data.
(comments are locked)
|
|
A while back, some ODBC libraries got entirely confused by DONE_IN_PROC messages, so it was actually needed in order to make client code function correctly. I don't believe that is the case any more with current generation libraries.
(comments are locked)
|
|
SSRS (Report Services) likes you to use them in your Stored Procedures that support a report. Apparently too many messages coming back from the stored procedure can confuse the report processing.
(comments are locked)
|

