在MS数据库中,查询包含某关键字的存储过程语句

在数据库SQL Server 2005/2008中,查询包含某关键字的存储过程语句:

select distinct b.name
from dbo.syscomments a, dbo.sysobjects b
where a.id=b.id  and b.xtype='p' and a.text like '%text%'
order by name  

 

posted @ 2011-05-26 16:57  Shapley  阅读(295)  评论(0编辑  收藏  举报