Depends on the platform. SQL server vs oracle vs whatever else.In oracle you can get a list off stored procs that you have access to via the ALL_OBJECTS view (with approriate where clause). then essentially you are gonna 'describe' each stored procedure to get the internal functions and parameters for each

解决方案 »

  1.   

    Sql server would work along the same lines I think but I *think* you'd have to get sp_help involved.
      

  2.   

    OracleCommand cmd = m_Connection.CreateCommand();
    cmd.CommandText = "TEST"; //Procedure-Name
    cmd.CommandType = CommandType.StoredProcedure;
    OracleCommandBuilder.DeriveParameters(cmd);foreach (OracleParameter par in cmd.Parameters)
    {
    MessageBox.Show(par.ParameterName + Environment.NewLine
    + par.Direction.ToString() + Environment.NewLine
    + par.OracleType.ToString() + Environment.NewLine
    );

      

  3.   

    楼上这位兄弟,你的讲解不是很详细,能否提供完整思路,如果有相关源码和SQL脚本更好。
      

  4.   

    http://www.ondotnet.com/pub/a/dotnet/2002/12/16/multiresultsets_1202.html?page=2
      

  5.   

    用.NET调用oracle的存储过程返回记录集 
    http://www.csdn.net/Develop/read_article.asp?id=21727