ADOX에 관한 오류가 있으며 해결 방법을 모릅니다.메서드 '열기'에 대한 과부하가 하나 이상의 인수를 사용합니다.
enter code here public static string[] GetTableExcel(string strFileName)
{
string[] strTables = new string[100];
Catalog sCatalog = new Catalog();
ADOX.Table sTable = new ADOX.Table();
MySql.Data.MySqlClient.MySqlConnection sConn = new MySql.Data.MySqlClient.MySqlConnection();
sConn.Open("server=localhost; Data Source = " + strFileName + ";user id=root;Password=1;database=test;persist security info=False");
sCatalog.ActiveConnection = sConn;
if (sCatalog.Tables.Count > 0)
{
int item = 0;
foreach (ADOX.Table tab in sCatalog.Tables)
{
if (tab.Type == "TABLE")
{
strTables[item] = tab.Name;
item++;
}
}
}
return strTables;
오류는 ''열기 '메서드에 대한 오버로드가 하나의 인수를 취합니다. 여기 어떤 종류의 영혼이라도 나를 도울 수 있습니까? 감사합니다
이 라인에서 기본적으로