/ Published in: SQL

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DECLARE @SEARCH VARCHAR(255) SET @SEARCH='text_to_search' 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 '%'+@SEARCH+'%' ORDER BY 2,1
Comments
