select distinct a.xtype, a.name
from sysobjects a with(Nolock)
join syscomments b with(Nolock)
on a.id = b.id
where a.xtype = 'P' and b.text like '%검색문자열%'
order by a.xtype, a.name
[ xtype ]
P : 저장프로시져
TR : 트리거
V : 뷰
FN : 함수
P : 저장프로시져
TR : 트리거
V : 뷰
FN : 함수