I'm using OleDb to interact with an Access database, and I'm trying to find out how to get the primary keys of each table, but in such a way that they are associated with the tables. In other words, I don't just want a flat list of the primary key column names--I want to be able to determine which table they belong to.
Any idea how to do this? I've used the GetSchema()
method to get a table of tables, but that table's information does not appear to include primary keys (or any other indexes, for that matter).