Finding Tables in MS Access using C# -
Using C # is it possible to set tables and columns in MS Access to a particular database?
Can anyone direct me to this issue?
The way you access MS-Access files, you can assign tables and column / field names to different ways You can read from:
- With an OLDB connection: You can use the ADOX objects collection and read tables, columns, indexes and more. Database
-
With an ODBC connection, you can list MS-ACCESS system tables, open a record on each table, and then read all the field names. Tables can be listed with the following SQL command:
Select from MSysObjects name WHERE type = 1
-
In all cases, once a The table is opened through a RecordSet, you can read its field names by looping the field of the record set object
Comments
Post a Comment