可以在sql server中禁用该消息吗? [英] can we disable the message in sql server?
本文介绍了可以在sql server中禁用该消息吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无论何时我们在任何DML操作上创建触发器.创建后,如果我执行my DML操作,它就会显示
1行受到影响
受影响的12行
在这里,第一个消息属于表上的插入,第二个结果属于触发触发器的结果.所以我可以禁用由于触发触发器而导致的味精吗???
非常感谢您提前提出任何建议..
whenever we create a trigger on any DML operations., after creation, if i do amy DML operations it shows
1 row(s) affected
12 row(s) affected
here the first msg belongs to the insertion on the table and 2nd result belongs to the result of firing the trigger. So can i disable the msg the comes due to the result of trigger being fired???
thanks a lot for suggesting any ideas in advance..
推荐答案
嘿
在开始行上写set nocount
例如.
在
上设置nocount -插入查询
祝你好运
Hey
write set nocount on at start line
eg.
set nocount on
-- insert query
Good Luck
这篇关于可以在sql server中禁用该消息吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文