用户登录
用户注册

分享至

如何停止 SQLServer 编写无关的东西,例如(1 行受影响)

  • 作者: 只看不发不讲究
  • 来源: 51数据库
  • 2022-10-20

问题描述

是否有可以在我的 SQL 脚本中运行的命令,以便它停止输出有关运行的每个操作的信息?

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

即我不想看到这个:

(1 row(s) affected)

(1 row(s) affected)

(1 row(s) affected)

推荐答案

使用:

SET NOCOUNT ON

抑制这些消息并使用下面的命令来启用这些消息.

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

SET NOCOUNT OFF
软件
前端设计
程序设计
Java相关