1,978
社区成员
发帖
与我相关
我的任务
分享
//返回一般sql语句的查询多个表的结果
public DataSet RunProcReturn(string[] procName, string[] tbName)
{
DataSet ds = new DataSet();
try
{
for (int i = 0; i < procName.Length; i++)
{
SqlDataAdapter dap = CreateDataAdaper(procName[i], null);
dap.Fill(ds, tbName[i]);
}
return ds;
}
catch
{
throw;
}
finally
{
this.Close();
}
}