ICode9

精准搜索请尝试: 精确搜索
首页 > 数据库> 文章详细

SQL server management 查询所有触发器

2022-08-03 09:33:25  阅读:47  来源: 互联网

标签:触发器 management JOIN 表名 server INNER SQL date id



SELECT OBJECT_NAME(a.parent_obj) AS [表名] ,
a.name AS [触发器名称] ,
( CASE WHEN b.is_disabled = 0 THEN '启用'
ELSE '禁用'
END ) AS [状态] ,
b.create_date AS [创建日期] ,
b.modify_date AS [修改日期] ,
c.text AS [触发器语句]
FROM sysobjects a
INNER JOIN sys.triggers b ON b.object_id = a.id
INNER JOIN syscomments c ON c.id = a.id
WHERE a.xtype = 'tr'
ORDER BY [表名]

 

执行结果:

 

标签:触发器,management,JOIN,表名,server,INNER,SQL,date,id
来源: https://www.cnblogs.com/canfengfeixue/p/16545836.html

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有