加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

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

发布时间:2020-12-12 08:31:13 所属栏目:MsSql教程 来源:网络整理
导读:我需要删除SQL Server中的触发器.似乎应该是简单的,但是因为有一个叫做“删除触发器”的东西,一个在删除时被调用的触发器,似乎找不到如何实际删除已经存在的触发器的资源. 解决方法 DROP TRIGGER: Removes one or more triggers from the current database…
我需要删除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…

(编辑:李大同)

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

    推荐文章
      热点阅读