Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Tip: Using the SET NOCOUNT SQL Method

Learn how to use the NOCOUNT method to switch off the DONE_IN_PROC messages and boost the performance of queries and network traffic.


advertisement

Whenever an SQL query has been executed it usually returns the number of rows as well as a short message. Sometimes when working with multiple Stored Procedures, each having multiple statements, you can quickly end up with a very long list of "Rows Affected" messages, or sometimes you simply do not need to know how many rows have been affected.

By switching off the DONE_IN_PROC messages you can actually boost the performance of queries and network traffic. To use NOCOUNT all you need to do is to add this statement above your query (wherever the query may be):

SET NOCOUNT ON
--SQL QUERY


 

Visit the DevX Tip Bank

 



   
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date