0 votes
in Technology by (54.6k points)
What is the use of SET NOCOUNT ON/OFF statement?

1 Answer

0 votes
by (54.6k points)

What is the use of SET NOCOUNT ON/OFF statement?

By default, NOCOUNT is set to OFF and it returns number of records got affected whenever the command is getting executed. If the user doesn't want to display the number of records affected, it can be explicitly set to ON- (SET NOCOUNT ON).

...