C
Chris Botha
With ADO, one could use the ADOX.Catalog to get tables in a database. How do
I do it with ADO.NET?
Thanks.
I do it with ADO.NET?
Thanks.
Bob Costello said:Here's what I use with an OleDBconnection in C#.
// cn is your ADO.NET OleDBconnection
DataTable schemaTable;
schemaTable =
cn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
new object[] {null, null, null, "TABLE"});
// Show each table name
foreach (DataRow row in schemaTable.Rows)
MessageBox.Show(row["TABLE_NAME"].ToString();
-----Original Message-----
With ADO, one could use the ADOX.Catalog to get tables in a database. How do
I do it with ADO.NET?
Thanks.
.