SET NOCOUNT OFF

  • sorry, it is better to put SET NOCOUNT ON, isn't it?

  • Correct. If you don't need to get any responses from things like update statements, then best to turn this off - this reduces traffic to and from the server. Helps (even if only slightly) with performance.

    Random Technical Stuff[/url]

  • I would recommend not setting that in the stored procedure because this reduces the possibilities of the return. When the stored proc is called from programming code, the call can be set to not return a record count. If it's set in the stored proc, the programmer has no way to get the count if it would be desired.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply