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


Tip of the Day
Language: Enterprise
Expertise: Beginner
Aug 26, 1999

Save on Network Traffic with the Transact-SQL Statement SET NOCOUNT ON

All statements executed in a stored procedure, including SELECT statements, generate an "x rows affected" message. These messages are typically not needed by the application when it is executing a stored procedure. Applications can execute the T-SQL statement SET NOCOUNT ON, so that the SQL Server does not return an indication of how many rows were affected by SQL statements, or by any statements within procedures. Issuing this command at the start of a large stored procedure can significantly reduce the network traffic between the server and client, and improve performance by eliminating these messages.

Jai Bardhan
 
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