Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find a string by searching all stored procs in SQL Server Management Studio 2008

Is there a way to search for a string within all stored procs in SQL Server Management Studio?

like image 903
dev.e.loper Avatar asked Mar 23 '11 14:03

dev.e.loper


People also ask

How do I search for a string in SSMS?

In SQL Server Management Studio, you can output your query results to text (CTRL + T), re-run your query, click in the results pane, and CTRL + F to find strings from an unfiltered query.


1 Answers

SELECT * FROM sys.sql_modules WHERE definition LIKE '%yourstring%' 
like image 144
Lamak Avatar answered Sep 29 '22 21:09

Lamak