Archive

Archive for March, 2007

Use SET NOCOUNT ON!

March 2nd, 2007 No comments

When writing stored procedures in SQL Server, every execution will be automatically followed by a (mostly useless) execution summary. In most cases, this should be switched off in order to decrease server round trips and network traffic. So it is a good idea to add

SET NOCOUNT ON

at the beginning of any sp.