TAG | Stored Procedures
Oct/10
4
Looking up Stored Procedures Containing ‘%x%’
No comments · Posted by Larry.Smithmier in Examples, Snippit, SQL
This isn’t really big news, but I have had to look it up twice in the last quarter. To find which stored procedures contain a specific text string, use:
SELECT Name, OBJECT_DEFINITION(OBJECT_ID) FROM sys.procedures sp WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%Language%'
Example · SELECT · SQL Server · Stored Procedures · sys.procedures
