file dbf:C:\ myTable.dbf; 代碼:Asp.net讀取文件.dbf錯誤conn.Open()
var file = @" C:\myTable.dbf";
var connectionString = @"Provider=vfpoledb;Data Source=" + file + ";Collating Sequence=machine;";
OdbcConnection conn = new OdbcConnection(connectionString);
conn.Open();
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
連接字符串看起來有點不妥。看看這些例子 - ODBC - http://www.connectionstrings.com/microsoft-visual-foxpro-odbc-driver/ – Steve
我很確定「整理序列」不是正確的字符串。嘗試在那裏「整理」。 –