我需要获取 Visual Fox Pro 数据库中的表列表。(7.0)这就是我正在做的......但它不起作用或者我做的不对......
DataFactory dataFactory = new DataFactory();
dataFactory.CreateOldStarbaseConnection();
dataFactory.OpenOldStarbaseConnection();
OleDbConnection oldStarbaseConnection = dataFactory.OldStarbaseConnection;
object[] arrRestrict = new object[] { null, null, "NewStarbase", null };
// Get the tables in the new Database
DataTable tblDbSchema = newStarbaseConnection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, arrRestrict);
// for each table in the new database
foreach (DataRow myDataRow in tblDbSchema.Rows)
{}