select distinct StoredProcedureName = a.name ,TableName = b.name from sys.objects a inner join sys.sql_dependencies d on a.object_id = d.object_id inner join sys.objects b on b.object_id = d.referenced_major_id