http://www.csdn.net/Develop/read_article.asp?id=16437

解决方案 »

  1.   

    OLE DB Provider for Visual FoxPro 
    oConn.Open "Provider=vfpoledb;" & _ 
               "Data Source=C:\vfp7\Samples\Data\myVFPDB.dbc;" & _ 
               "Mode=ReadWrite|Share Deny None;" & _ 
               "Collating Sequence=MACHINE;" & _ 
               "Password=''" 
    For more information, see: Microsoft OLE DB Provider for Visual FoxPro To view Microsoft KB articles related to OLE DB Provider for Visual FoxPro, click here.Note: The Visual FoxPro OLE DB Provider is NOT installed by MDAC 2.x.  You must install Visual FoxPro 7.0 in order to get it's OLE DB Provider.
      

  2.   

    ODBC Driver for dBASE 
    oConn.Open "Driver={Microsoft dBASE Driver (*.dbf)};" & _
               "DriverID=277;" & _
               "Dbq=c:\somepath"
    Then specify the filename in the SQL statement:oRs.Open "Select * From user.dbf", oConn, , ,adCmdText
    Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update dBase DBF files. (Q238431).For more information, see:  dBASE Driver Programming ConsiderationsTo view Microsoft KB articles related to Microsoft dBASE Driver, click here 
    ODBC Driver for Visual FoxPro 
    With a database containeroConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _
               "SourceType=DBC;" & _
               "SourceDB=c:\somepath\mySourceDb.dbc;" & _
               "Exclusive=No" 
     
    Without a database container (Free Table Directory)oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _
               "SourceType=DBF;" & _
               "SourceDB=c:\somepath\mySourceDbFolder;" & _
               "Exclusive=No" 
    For more information, see:  Visual FoxPro ODBC Driver and Q165492
      

  3.   

    看看这个。
    http://www.connectionstrings.com/