Jun 6, 2001 #2 cdukes Programmer Aug 6, 1999 286 FR It stops output from SQL statements. Normally if you write a SQL statement, SQLServer will output messages such as: 10 Rows Selected 1 Row updated etc... Setting nocount on will suppress these messages. It is usually used in stored procedures when you do not want the SP to return lots of rubbish. Hope this helps, Chris Dukes Upvote 0 Downvote
It stops output from SQL statements. Normally if you write a SQL statement, SQLServer will output messages such as: 10 Rows Selected 1 Row updated etc... Setting nocount on will suppress these messages. It is usually used in stored procedures when you do not want the SP to return lots of rubbish. Hope this helps, Chris Dukes