2011-04-07 15 views
1

以下是從MS Access獲取表的列表的代碼。如何從MS Access獲取視圖列表

    List<string> tables = new List<string>(); 
        foreach (DataRow schemaRow in datatable.Rows) 
         { 
        string sheet = schemaRow["TABLE_NAME"].ToString(); 
        String[] excelSheets = new String[datatable.Rows.Count]; 
        if (schemaRow["TABLE_TYPE"].ToString() == "TABLE") 
        tables.Add(sheet); 
        } 

我需要MS Access數據庫查詢的列表和查詢列。

回答