If you want to limit the search to stored procedures, you can do this:
SELECT name FROM sys.objects WHERE type = 'P' AND OBJECT_DEFINITION(object_id) LIKE '%name_of_your_table%' ORDER BY name
If you want to include other SQL modules - for example, functions, triggers, views, etc. - then you can change the request to make WHERE type IN ('P', 'FN', 'IF', 'TF', 'V') , etc., or use the alternative specified in Martin's Answer .
LukeH Jul 29 '10 at 9:47 on 2010-07-29 09:47
source share