SQL Server根据存储过程的内容查询存储过程的名字 select s.name,c.text,* from sysobjects s inner join syscomments c on c.id=s.id where c.text like '%sp_send_dbmail%'