I just need to search through all the stored procedures on my database looking for one that contains "item" in its name. Any ideas?
I've been tinkering around with this, but it's not quite there yet:
SELECT DISTINCT OBJECT_NAME(ID) FROM SysComments WHERE Text LIKE '%Item%'
To find those that contain the string "Item" in the name.
select schema_name(schema_id) as [schema],
name
from sys.procedures
where name like '%Item%'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With