SQL Server 查询所有包含某文本的存储过程、视图、函数

•  方法一:查询所有包含某文本的存储过程、视图、函数

SELECT * from sysobjects o, syscomments s where o.id = s.id 
AND text LIKE '%text%' 
View Code

•   方法二:

select routine_name,routine_definition,routine_type
from information_schema.routines
where routine_definition like'%exec%'
ORDER BY routine_type
View Code

 

posted @ 2018-01-17 10:24  TuringChang  阅读(3175)  评论(0编辑  收藏  举报