■99138 / ) |
Re[8]: Adapter.Fill実行1回目が遅い |
□投稿者/ ど (4回)-(2022/02/09(Wed) 12:18:14)
|
データベースにはこのようなかたちで接続しています。
OleDbConnection nwindConn = new OleDbConnection(connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:mydb.accdb");
OleDbCommand selectCMD = new OleDbCommand("SELECT CustomerID, CompanyName FROM Customers", nwindConn);
OleDbDataAdapter customerDA = new OleDbDataAdapter();
customerDA.SelectCommand = selectCMD;
DataSet customerDS = new DataSet();
customerDA.Fill(customerDS, "Customers");
|
|