Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Finding a stored procedure containing <text>

Author  Topic 

wleonard
Starting Member

30 Posts

Posted - 2011-05-06 : 12:05:20
I am looking to develop a query that will parse through all of the stored procedures containing specific text. The following three tables should be inside the stored procedure I'm looking for in the database:

tblinventoryprimary
tblinventorystatus
tblinventorytype

Any help would be appreciated. Thanks.

Will Leonard

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2011-05-06 : 12:11:52
[code]select name
from sys.procedures
where object_definition(object_id) like '%tblinventoryprimary%'[/code]
Go to Top of Page
   

- Advertisement -