Collection of snippets to use to search the database for objects containing a searchstring
men aged 40 and above, the highest proportion, considerpenetrated (entered) your partner? sildenafil 50mg.
.
DECLARE @Search varchar(255)
SET @Search='whatimlookingfor'
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
-- Source JumpingJezza on StackExchange