0

I am trying to search for this string [Name].[Names - Software].[Names Delivery]

II have the following but its not finding anything:

DECLARE @string AS VARCHAR(50) = '%\[Name].[Names - Software].[Names Delivery]%'

SELECT  Name
FROM    sys.procedures
WHERE   OBJECT_DEFINITION(OBJECT_ID) LIKE @string ESCAPE '\'

How do I change @string so it will find all instances of the string?

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
whytheq
  • 32,991
  • 61
  • 166
  • 261

0 Answers0