I want to search all of my database's stored processes for a specific text. I employ SQL as follows:
o.name AS Object_Name,
FROM sys.sql_modules m
ON m.object_id = o.object_id
WHERE m.definition Like '%[ABD]%';
I want to look for [ABD] in every stored procedure, even the ones with square brackets, but it's not returning the right information. How can I modify my search to accomplish this?