/// <summary>
/// 取得库文件内的表名
/// </summary>
/// <returns></returns>
//Access:
private ArrayList GetMdbTableName()
{
ArrayList al = new ArrayList();
DataTable dataTableschema = this.mconn1.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables,
new object[]{null, null, null, "TABLE"});
foreach(DataRow dr in dataTableschema.Rows)
al.Add(dr["Table_Name"].ToString());
return al;
}
//oracle:
select table_name from user_tables
//sql server:
select *from sysobjects where type='U'
/// 取得库文件内的表名
/// </summary>
/// <returns></returns>
//Access:
private ArrayList GetMdbTableName()
{
ArrayList al = new ArrayList();
DataTable dataTableschema = this.mconn1.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables,
new object[]{null, null, null, "TABLE"});
foreach(DataRow dr in dataTableschema.Rows)
al.Add(dr["Table_Name"].ToString());
return al;
}
//oracle:
select table_name from user_tables
//sql server:
select *from sysobjects where type='U'