SqlCommand Comm= new SqlCommand("存储过程的名字", Conn);
Comm.CommandType= CommandType.StoredProcedure;
//可在此处给存储过程添加参数
SqlDataAdapterda= new SqlDataAdapter();
da.SelectCommand= Comm;
DataSet ds = new DataSet();
da.Fill(ds, "数据表的名字");
SqlCommand Comm= new SqlCommand("存储过程的名字", Conn);
Comm.CommandType= CommandType.StoredProcedure;
//可在此处给存储过程添加参数
SqlDataAdapterda= new SqlDataAdapter();
da.SelectCommand= Comm;
DataSet ds = new DataSet();
da.Fill(ds, "数据表的名字");