在数据库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
from dbo.syscomments a, dbo.sysobjects b
where a.id=b.id and b.xtype='p' and a.text like '%text%'
order by name