如何写dbf数据库的OLEDB连接串,多谢

解决方案 »

  1.   

    要通过ODBC 连接串如下:
    Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="CollatingSequence=ASCII;DefaultDir=D:\Window2000\Microsoft Visual Studio\VB98;Deleted=1;Driver={Driver do Microsoft dBase (*.dbf)};DriverId=533;FIL=dBase 5.0;FILEDSN=D:\Program Files\Common Files\ODBC\Data Sources\DBF.dsn;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;SafeTransactions=0;Statistics=0;Threads=3;UID=admin;UserCommitSync=Yes;"
      

  2.   

    这是我在打开VF自由表时的连接串
    CString strSRC;
    strSRC="DRIVER=Microsoft Visual FoxPro Driver;";
    strSRC+="SourceType=DBC;";
    strSRC+="SourceDB=";
    strSRC+=strDBName;//strDBName代表自由表的路径名
    strSRC+=";UID=SA;PWD=";
      

  3.   

    用Microsoft jet4.0引擎
    DAO