ADO and dbf Foxpro - basic.visual

This is a discussion on ADO and dbf Foxpro - basic.visual ; Hi This code work with win2000 and win98 but don't work under win XP error -2147467259 why? Set cnFox = New ADODB.Connection cnFox.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=C\;SourceType=DBF;Exclu sive=No;BackgroundFetch=Yes;Collate=Machine;Null=Y es;Deleted=YES;" cnFox.Open Set rsFox = New ADODB.Recordset rsFox.Open ...

+ Reply to Thread
Results 1 to 3 of 3

ADO and dbf Foxpro

  1. Default ADO and dbf Foxpro

    Hi

    This code work with win2000 and win98 but don't work under win XP

    error -2147467259

    why?

    Set cnFox = New ADODB.Connection
    cnFox.ConnectionString = "Provider=MSDASQL.1;Persist Security
    Info=False;Extended Properties=Driver={Microsoft Visual FoxPro
    Driver};UID=;PWD=;SourceDB=C\;SourceType=DBF;Exclu
    sive=No;BackgroundFetch=Yes;Collate=Machine;Null=Y
    es;Deleted=YES;"

    cnFox.Open

    Set rsFox = New ADODB.Recordset
    rsFox.Open "select distinct RN_MER from Anagrafiche", cnFox ,
    adOpenForwardOnly, adLockReadOnly

    Help Me
    Thanks



  2. Default Re: ADO and dbf Foxpro

    that appears to be a automation error... do you have mdac installed on
    WinXP?

    check it out
    http://msdn.microsoft.com/library/de...dataaccess.asp

    Sguindaw

    Cerberus wrote:

    > Hi
    >
    > This code work with win2000 and win98 but don't work under win XP
    >
    > error -2147467259
    >
    > why?
    >
    > Set cnFox = New ADODB.Connection
    > cnFox.ConnectionString = "Provider=MSDASQL.1;Persist Security
    > Info=False;Extended Properties=Driver={Microsoft Visual FoxPro
    > Driver};UID=;PWD=;SourceDB=C\;SourceType=DBF;Exclu
    > sive=No;BackgroundFetch=Yes;Collate=Machine;Null=Y
    > es;Deleted=YES;"
    >
    > cnFox.Open
    >
    > Set rsFox = New ADODB.Recordset
    > rsFox.Open "select distinct RN_MER from Anagrafiche", cnFox ,
    > adOpenForwardOnly, adLockReadOnly
    >
    > Help Me
    > Thanks
    >
    >


    --
    Good moorning, Mr. Sguindaw... This is your life, whatever if you like
    to live it or not...


  3. Default Re: ADO and dbf Foxpro


    I have installed mdac 2.8 and driver foxpro
    and now work :-)

    Thank you

    "Sguindaw" <sguindawQuItA_EsTo@linuxmail.org> ha scritto nel messaggio
    news:c1ikuu$1j4d3m$2@ID-10517.news.uni-berlin.de...
    > that appears to be a automation error... do you have mdac installed on
    > WinXP?
    >
    > check it out
    >

    http://msdn.microsoft.com/library/de...ist/dataaccess
    ..asp
    >
    > Sguindaw
    >
    > Cerberus wrote:
    >
    > > Hi
    > >
    > > This code work with win2000 and win98 but don't work under win XP
    > >
    > > error -2147467259
    > >
    > > why?
    > >
    > > Set cnFox = New ADODB.Connection
    > > cnFox.ConnectionString = "Provider=MSDASQL.1;Persist Security
    > > Info=False;Extended Properties=Driver={Microsoft Visual FoxPro
    > > Driver};UID=;PWD=;SourceDB=C\;SourceType=DBF;Exclu
    > > sive=No;BackgroundFetch=Yes;Collate=Machine;Null=Y
    > > es;Deleted=YES;"
    > >
    > > cnFox.Open
    > >
    > > Set rsFox = New ADODB.Recordset
    > > rsFox.Open "select distinct RN_MER from Anagrafiche", cnFox ,
    > > adOpenForwardOnly, adLockReadOnly
    > >
    > > Help Me
    > > Thanks
    > >
    > >

    >
    > --
    > Good moorning, Mr. Sguindaw... This is your life, whatever if you like
    > to live it or not...
    >




+ Reply to Thread

Similar Threads

  1. VB ADO to FoxPro
    By Application Development in forum ADO DAO RDO RDS
    Replies: 0
    Last Post: 09-17-2007, 02:50 PM
  2. ADO.Net and FoxPro 8 dbf file
    By Application Development in forum ADO DAO RDO RDS
    Replies: 4
    Last Post: 08-30-2007, 04:16 PM
  3. CDaoDatabase and DBF(FoxPro)
    By Application Development in forum ADO DAO RDO RDS
    Replies: 0
    Last Post: 02-23-2004, 02:33 PM
  4. Vb6 and foxpro
    By Application Development in forum basic.visual
    Replies: 5
    Last Post: 11-11-2003, 10:12 PM
  5. ODBC.NET with Foxpro
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 07-10-2003, 04:29 PM