Sql代码
select *
from sysobjects o, syscomments s
where o.id = s.id
and text like '%yyao%'
and o.xtype = 'P' 将yyao替换成自己要查找的文本
方法二:
Sql代码
select routine_name,routine_definition,routine_type
from information_schema.routines
where routine_definition like '%Parent%'
order by routine_type
select routine_name,routine_definition,routine_type
from information_schema.routines
where routine_definition like '%Parent%'
order by routine_type 将Parent替换成自己要查找的文本
方法三:
Sql代码
sp_depends customer 此方法只能查找数据库对象,如表、视图、存储过程、函数