Вопрос

I have a mdb file with a lot of data. I don't know the names of the tables or the cols inside. I need to build a c# app that will show some details on this db. What is the options to view the starcture of the tables? I tried use some mdb viewers but the file is too big for that. I just need the names of the tables and not the values.

Это было полезно?

Решение

You should be able to call the get OleDbSchemaTable method on the OleDbConnection object, i haven't used this before but the equivilent functionality on the SqlConnection object can provide extensive information on the database schema.

[http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbconnection.getoledbschematable(v=vs.71).aspx][1]

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top