加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 数据库 > MsSql > 正文

sql-server – 如何在SQL Server中删除触发器?

发布时间:2020-05-23 14:37:27 所属栏目:MsSql 来源:互联网
导读:我需要删除SQL Server中的触发器.似乎应该是简单的,但是因为有一个叫做“删除触发器”的东西,一个在删除时被调用的触发器,似乎找不到如何实际删除已经存在的触发器的资源. DROP TRIGGER: Removes one or more triggers from the current database… You can

我需要删除SQL Server中的触发器.似乎应该是简单的,但是因为有一个叫做“删除触发器”的东西,一个在删除时被调用的触发器,似乎找不到如何实际删除已经存在的触发器的资源.

解决方法

DROP TRIGGER:

Removes one or more triggers from the current database…

You can remove a trigger by dropping it or by dropping the trigger table. When a table is dropped,all associated triggers are also dropped. When a trigger is dropped,information about the trigger is removed from the sysobjects and syscomments system tables.

Use DROP TRIGGER and CREATE TRIGGER to rename a trigger. Use ALTER TRIGGER to change the definition of a trigger…

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读