查询内容中包含某字段的存储过程、视图

--查询存储过程中含某字段的所有存储过程:
select  distinct  name, text 
from dbo. syscomments a,dbo. sysobjects b    
where a.id=b.id     and b.xtype= 'p'  and a. text  like  '%ZyNum%'
--查询视图内容中含某字段的所有视图:
select  distinct  name, text 
from dbo. syscomments a,dbo. sysobjects b    
where a.id=b.id     and b.xtype= 'v'  and a. text  like  '%ZyNum%'

  

posted @ 2021-08-23 16:59  HRain  阅读(89)  评论(0)    收藏  举报