This is the SQL that I am using:
select distinct [Table Name] = o.Name, [Found In] = sp.Name, sp.type_desc from sys.objects o inner join sys.sql_expression_dependencies sd on o.object_id = sd.referenced_id inner join sys.objects sp on sd.referencing_id = sp.object_id and sp.type in ('P', 'FN') where o.name = 'PacManPackage' and o.name = 'PacManCompanyPackage' order by sp.Name If I remove the o.name and view with only one table it works. But I need to find stored procedures that reference a few different tables (but they must reference all of them)