[MS-SQL] 프로시저 찾기

|
-- mssql 에서 프로시저 찾기(1)
SELECT DISTINCT a.name
FROM sysobjects AS a
	LEFT JOIN syscomments AS b
	ON a.id = b.id
WHERE a.xtype = 'P'
AND b.text LIKE '%Up_AC15T_IWOL%'

-- mssql 에서 프로시저 찾기(2)
-- 실행이 안됨
SELECT OBJECT_NAME(object_id), OBJECT_DEFINITION(object_id)
FROM sys.procedures WHERE OBJECT_DEFINITION(object_id) LIKE '%gaap_iwol%'
And