Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I suggest you take the following steps:</p> <ol> <li>Create a database with a single table to hold the final results. The table should have the exact same structure as the individual files, but with a primary key field - either the path to the database file, or some other unique value for each row (this can be generated with an AutoNumber field). You may want an additional column for the database path in any case, particularly if you need to prevent rereading the same database file multiple times.</li> <li>Open an ADO.NET connection to the final database, using the OleDb provider. This entails a) creating an <code>OleDbConnection</code> object, b) creating an <code>OleDbCommand</code> object that runs on the connection, c) setting the <code>CommandText</code> of the command object to an SQL statement, and d) executing the command.</li> <li><p>Your SQL statement could look something like this:</p> <pre><code>INSERT INTO desttable (pkfield, field1, field2 ...) SELECT field1, field2 FROM sourcetable </code></pre> <p><code>sourcetable</code> can also be a table in a different database like so:</p> <pre><code>INSERT INTO desttable (pkfield, field1, field2 ...) SELECT field1, field2 FROM sourcetable IN path\to\mdb </code></pre> <p>so for each path you could build the SQL statemnt by substituting the appropriate path each time.</p></li> <li>If you want to iterate over all the mdb files in a particular folder, you can use the <code>EnumerateFiles</code> method of the <code>Directory</code> class, in the <code>System.IO</code> namespace. Alternatively, you can open up a dialog box with the <code>OpenFileDialog</code> in the <code>Windows.Forms</code> namespace.</li> <li>Once you've figured out what kind of UI you want to see, it should be trivial to bind to this data.</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload