MSSQL中通过关键字查找所有存储过程 select b.namefrom 数据库名.dbo.syscomments a, 数据库名.dbo.sysobjects bwhere a.id=b.id and b.xtype='p' and a.text like '%key words%'order by name 如果关键字是一张表的话,还可以通过表的Referenced by属性找到相关的函数、存储过程和触发器等。