Advertisement
hecrus

Untitled

Feb 9th, 2021
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. CREATE PROC [dbo].[system_searchInStoredProcs]
  2. (
  3. @str nvarchar(100)
  4. )
  5. AS
  6. BEGIN
  7. SELECT name sp, Object_definition(object_id) text
  8. FROM sys.procedures
  9. WHERE Object_definition(object_id) LIKE '%'+@str+'%'
  10.  
  11.  
  12. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement