M
Michael
Hi,
I'm using OleDbConnection.GetOleDbSchemaTable() to obtain the name of
all the tables in an access database. This is a bit of my code:
OleDbConnection connection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
mdbFile + ";Mode=Read;
connection.Open();
Object[] objArray = new Object[]{null, null, null, "TABLE"};
DataTable table;
table = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
objArray);
connection.Close();
foreach (DataRow row in table.Rows)
{
string tableName = (string)row["TABLE_NAME"];
}
My database has 34 tables, and I'm only to able to 26 of them. Could
anyone PLEASE help me figure this out?
Thanks alot!
Michael
I'm using OleDbConnection.GetOleDbSchemaTable() to obtain the name of
all the tables in an access database. This is a bit of my code:
OleDbConnection connection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
mdbFile + ";Mode=Read;
connection.Open();
Object[] objArray = new Object[]{null, null, null, "TABLE"};
DataTable table;
table = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
objArray);
connection.Close();
foreach (DataRow row in table.Rows)
{
string tableName = (string)row["TABLE_NAME"];
}
My database has 34 tables, and I'm only to able to 26 of them. Could
anyone PLEASE help me figure this out?
Thanks alot!
Michael