상세 컨텐츠

본문 제목

특정 문자열이 포함된 저장 프로시저 찾기

DataBase/SQL Server

by 탑~! 2010. 8. 18. 15:02

본문

SELECT * FROM sysobjects WHERE id IN ( SELECT id FROM syscomments WHERE text LIKE '%CharterBaseID%' )

or


    SELECT DISTINCT so.name , replace(replace(replace(replace(sc.TEXT,CHAR(9), ''),CHAR(13),''),CHAR(10),''),CHAR(32),'') , so.xtype
    FROM syscomments sc
        INNER JOIN sysobjects so ON sc.id=so.id
    WHERE sc.TEXT LIKE '%키워드%'

관련글 더보기