허당 레몬도리
[MSSQL]Procedure, Function 등에서 사용되는 문자열 검색하기

--사용 방법 프로시저에 특정문자가 있는 프로시저를 찾고 싶을 때 사용--조회 : 이름, 타입DECLARE @p_SearchText nvarchar(MAX)SET @p_SearchText = '*'select t1.name, t1.typefrom sys.objects t1where exists ( select 'x' from syscomments t2 where t1.object_id = t2.id and t2.text like '%' + @p_SearchText + '%' ) 출처 : http://cooldragon.tistory.com