Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set no count on

Status
Not open for further replies.

italy

Programmer
Feb 13, 2001
162
US
what is this statment doas thanks
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top