62

Is there a command I can run inside my SQL script so that it stops outputing information about each operation that gets run?

ie I don't want to see this:

(1 row(s) affected) (1 row(s) affected) (1 row(s) affected) 

2 Answers 2

101

Use:

SET NOCOUNT ON 

to suppress these messages and use the command below to enable the messages.

SET NOCOUNT OFF 
Sign up to request clarification or add additional context in comments.

Comments

22

run this command:

set nocount on 

1 Comment

...everywhere! stored procs, triggers. the lot

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.