写好语句,要执行时总是报错,说语法错误,我把语句放在foxpro中执行没问题,最后找了个高手终于解决。连接的方式不对
String sConn = @"provider=VFPOLEDB.1;data source=" + path + ";user id=admin;password=";
OleDbConnection conn = new OleDbConnection(sConn);
conn.Open();
还需要安装一个驱动VFPOLEDBSetup.msi