求助!

解决方案 »

  1.   

    使用SqlDataReader得到存储过程的返回结果,把SqlDataReader填充到DataTable中,Dateset.table.add(DataTable)
      

  2.   

     DataSet ds = new DataSet();
                SqlDataAdapter sda = new SqlDataAdapter(SqlCmd);
                sda.Fill(ds);
                PageCount = Convert.ToInt32(Para_PageCount.Value);
                sda.Dispose();
                SqlCmd.Dispose();
                conn.Close();
                return ds;
      

  3.   

    conn为连接数据库的实例, 伪代码如下:
    conn.open();
    SqlCommand comm = new SqlCommand("存储过程名", conn);
    DataSet ds = new DataSet();
    try
    {
        _comm.CommandType = CommandType.StoredProcedure;
        
        _comm.Parameters.Add("参数", 类型).Value = 传入的值;
        _comm.ExecuteNonQuery();    SqlDataAdapter  da = new SqlDataAdapter(comm);
        da.Fill(ds);
    }
    catch( Exception Message )
    {
       //捕获异常
    }
    conn.close();
    返回ds
      

  4.   

    存储过程中用油标cursor返回数据集,方法中取cursor的例子很多,上网找
      

  5.   

    在储存过程里加个return返回参数