SELECT
DISTINCT
CAST(o.[name] AS VARCHAR(40)) AS objectname ,
o.type
FROM syscomments cinner
JOIN sysobjects o ON c.[id] = o.[id]
WHERE c.[text] LIKE ‘%Find Text%’
ORDER BY o.type
you just replace “Find Text” to your search string in query.
No comments:
Post a Comment