2022. 10. 6. 10:58
procedure/function/trigger 의 내용 찾기
2022. 10. 6. 10:58 in 팁&테크/MSSQL
일반 적인 문자열
SELECT DISTINCT
o.name AS Object_Name,
o.type_desc
FROM sys.sql_modules m
INNER JOIN
sys.objects o
ON m.object_id = o.object_id
WHERE m.definition Like '%totalRevenue%'
ESACPE 처리 해야 하는 문자열
SELECT DISTINCT
o.name AS Object_Name,
o.type_desc
FROM sys.sql_modules m
INNER JOIN
sys.objects o
ON m.object_id = o.object_id
WHERE m.definition Like '%\[totalRevenue\]%' ESCAPE '\'