nick轩

导航

在数据库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 on 2012-04-25 18:26  nick轩  阅读(350)  评论(0编辑  收藏  举报