This can be done using the following queries.
Query 1
Write the following query to find if table is used in stored procedure,
SELECT DISTINCT so.name FROM syscommentssc INNER JOIN
sysobjects so on sc.id=so.id WHERE sc.text LIKE '%table_name%'This query will return the name of the stored procedures that have used the table name specified in the preceding SQL Query.Query 2
Write the following query to find if table is used in stored procedure,
SELECT DISTINCT o.name, o.xtype FROM syscomments c
INNER JOIN sysobjects o ON c.id=o.id
WHERE c.TEXT LIKE '%tablename%'This query also returns the stored procedures that have used the table name specified in the preceding SQL Query.