Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find stored procedures referencing table x?

Status
Not open for further replies.

snippy

Programmer
Mar 31, 2004
7
US
Does anyone know of a quick way to find all stored procedures that reference a particular table?
 
Hi,

A possible solution for your requirement would look similar to the following SQL:

select procname
from sysprocedures
where procid in
(
select procid
from sysprocbody
where datakey='T' and data matches '* your_table_name *'
) ;

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top