--查找存在某表名的存储过程 SELECT distinct b.name from syscomments a,sysobjects b WHERE a.id=b.id and a.TEXT LIKE '%你要查找的表名%' --查找存在某内容的存储过程 SELECT NAME FROM sysobjects o, syscomments s WHERE o.id = s.id AND TEXT LIKE '%你要查找的内容%' AND o.xtype = 'P' --查找存在某内容的存储过程名称及存储过程内容 SELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_DEFINITION LIKE '%你要查找的内容%' AND ROUTINE_TYPE='PROCEDURE'