select distinct object_name(id) from syscomments where id in (select id from sysobjects where type in('V','P')) and text like '%tablename%'
其中sysobjects 中的type V=View P=Proc
yuanhang 2014-05-05 21:47 原文
select distinct object_name(id) from syscomments where id in (select id from sysobjects where type in('V','P')) and text like '%tablename%'
其中sysobjects 中的type V=View P=Proc