{{theTime}}

Search This Blog

Total Pageviews

How to reduce amount of network data for SQL server stored procedure?


SET NOCOUNT ON

Every time a SQL Statement is executed it returns the number of rows that were affected.  By using
"SET NOCOUNT ON" within your stored procedure you can reduce some traffic.  You can still use
@@ROWCOUNT variable to get number of rows.

No comments:

Generate Insert Sql from Select Statement

SELECT 'INSERT INTO ReferenceTable (ID, Name) VALUES (' +        CAST(ID AS NVARCHAR) + ', ''' + Name + ''...