/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
--needs to be run in the database that you want to search in --get all procedures with name like SELECT DISTINCT SO.Name FROM sysobjects SO (NOLOCK) WHERE SO.Type = 'P' AND SO.Name LIKE '%report%' ORDER BY SO.Name --get all procedures containing text like SELECT DISTINCT SO.Name FROM sysobjects SO (NOLOCK) INNER JOIN syscomments SC (NOLOCK) ON SO.Id = SC.ID AND SO.Type = 'P' AND SC.Text LIKE '%report%' ORDER BY SO.Name