views:

264

answers:

4

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)

(Apparently this is in Experts-Exchange, but it's not accessible)

+8  A: 

run this command:

set nocount on
Abraham Pinzur
...everywhere! stored procs, triggers. the lot
gbn
+1  A: 
SET NOCOUNT ON

and then

SET NOCOUNT OFF
x2
+2  A: 

After all these years it still grates. And yes I know how it came to be. But hopefully some day they'll offer "SET COUNT OFF" as an option.

le dorfier