The question asks how to find a stored procedure that is inserted into a specific table.
Searching for stored procedures containing this name can lead to several false positives if many options refer to the table.
sys.sql_dependencies deprecated, but may be useful here because it contains the is_updated flag, which is also set to 1 for insertions.
SELECT QUOTENAME(OBJECT_SCHEMA_NAME(object_id)) + '.' + QUOTENAME(OBJECT_NAME(object_id)) FROM sys.sql_dependencies WHERE referenced_major_id = OBJECT_ID('YourTable') AND is_updated = 1 GROUP BY object_id
Martin smith
source share