• Try sys.dm_sql_referenced_entities or sys.dm_sql_referencing_entities instead. Otherwise it's a nice idea.

    Oh wait, I just re-read and saw you were doing this for 2000. Didn't know anyone was still using 2000... 😉

    Francis
    -----------------
    SQLRanger.com