日期:2014-05-18 浏览次数:20585 次
PrepareCommand(conn, cmd, cmdtype, strsql, parameters);
OleDbDataAdapter da = new OleDbDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
try
{
da.Fill(ds, startRecord, maxRecords, "table");
return ds;
}
catch (System.Data.OleDb.OleDbException e)
{
throw e;
}
finally
{
conn.Dispose();
}