How to stop SQLServer writing extraneous stuff eg (1 rows affected)

前端 未结 1 538
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-11 12:17

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条回答
  •  清歌不尽
    2021-02-11 12:46

    Use:

    SET NOCOUNT ON
    

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

    SET NOCOUNT OFF
    

    0 讨论(0)
提交回复
热议问题