select a.name,b.text from sysobjects a, syscomments b where a.id = b.id and a.name='存储过程名'
https://help.fanruan.com/finereport/doc-view-117.html
存储过程数据集