How to stop SQLServer from writing extraneous things, for example (1 row affected)

Is there a command that I can run inside my SQL script so that it does not display information about each running operation?

those. I do not want to see this:

(1 row(s) affected) (1 row(s) affected) (1 row(s) affected) 
+42
sql-server tsql
Sep 04 '09 at 3:25
source share
2 answers
 SET NOCOUNT ON 

and then

 SET NOCOUNT OFF 
+74
Sep 04 '09 at 3:29
source share

run the following command:

 set nocount on 
+17
Sep 04 '09 at 3:28
source share



All Articles