This blog explains how to retrieve a list of all stored procedures related to tables or a database.

Query:

  1. SELECT DISTINCT o.name AS StoredProcedure_Name
  2. FROM syscomments c
  3. INNER JOIN sysobjects o ON c.id=o.id
  4. WHERE xtype='P'

Output:

List of all stored Procedure related to a table:
Query:

  1. SELECT DISTINCT o.name AS StoredProcedure_Name
  2. FROM syscomments c
  3. INNER JOIN sysobjects o ON c.id=o.id
  4. WHERE xtype='P' AND c.TEXT LIKE '%TblCompany_General_Info%'

Output: