Browse DevX
Sign up for e-mail newsletters from DevX

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



Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



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