查询当前数据库存在某个字符串的存储过程

--将text替换成你要查找的内容 
SELECT ROUTINE_NAME, ROUTINE_DEFINITION 
FROM INFORMATION_SCHEMA.ROUTINES 
WHERE ROUTINE_DEFINITION LIKE '%AgentRoomCardOrder%' 
AND ROUTINE_TYPE='PROCEDURE'