标签:comment sql语句 comm select object_id primary uniq efault ext
用SQL语句查找包含有某个关键字的存储过程、触发器、函数等等,SQL语句如下:
select OBJECT_NAME(id) as 存储过程,id from syscomments where id in ( select object_id(name) from dbo.sysobjects where xtype=‘P‘ --存储过程为P ) and text like ‘%FieldName%‘ --关键字 group by id
或
select name from sysobjects o, syscomments s where o.id = s.id and text like ‘%Extent1%‘ --and o.xtype = ‘P‘
用SQL语句查找包含有某个关键字的存储过程、触发器、函数等等
标签:comment sql语句 comm select object_id primary uniq efault ext
原文地址:https://www.cnblogs.com/Fooo/p/10621848.html