sql server - Is it possible to find the objects which depend on a synonym? -
I tried exec sp_depends @objname = 'sfel.elpc'
but I could not find any results , But I know that at least one stored procedure has referenced the option.
This code is better:
from SELECTs sys.sql_modules Join INNER at sys.objects o at m.object_id = o.object_id WHERE m.definition '% sfel.elpc%' and type = 'P'
This code gives you a more Gives limited list.
Comments
Post a Comment