0
Visual Fox Pro 데이터베이스에서 테이블 목록을 얻어야합니다. (7.0)이 내가 뭘하는지입니다 ....하지만 작동하지 않습니다 또는 내가 바로 그 일을 아니에요 ...FoxPro 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)
{}
고마워요 Tom! – OllieDoodle