SET NOCOUNT ON usage

前端 未结 17 2078
抹茶落季
抹茶落季 2020-11-22 05:55

Inspired by this question where there are differing views on SET NOCOUNT...

Should we use SET NOCOUNT ON for SQL Server? If not, why not?

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 06:10

    • SET NOCOUNT ON- It will show "Command(s) completed successfully".
    • SET NOCOUNT OFF- it will show "(No. Of row(s) affected)".

提交回复
热议问题