Trouble with ADO and VFP OLE DB provider

From: Paul Scvortsov (pauls_at_energotransbank.com)
Date: 03/30/04

  • Next message: Kevin Frevert: "Re: Is ADO in D6 slower than in D5?"
    Date: Tue, 30 Mar 2004 14:47:55 +0300
    
    

    Hi, all. Please help.
    I need to use the old FoxPro 2.5 tables to get information from the outside
    company
    to my MS SQL 2000 database. I supposed to use the Visual FoxPro OLE DB
    Provider
    (MDAC 2.8; D7), but have some troubles:
    1)When I try to delete a record:
        ADOTable1.active:=true;
        ADOTable1.edit;
        ADOTable1.delete;
    I receive the error:'Multiple-step operation generated errors. Check each
    status value', and then I do
        ADOTable1.refresh;
    I receive: 'Insufficient key column information for updating or refreshing'.
    I have such settings:
       CursorLocation:=clUseClient;
       CursorType:=ctKeyset;
       TableDirect=False;
    2) When I change settings to
       CursorLocation:=clUseServer;
       CursorType:=ctKeyset;
       TableDirect=True;
    I can delete records, but I couldn't hide deleted records, even I preveously
    set 'Set deleted on' by ADOCommand.
    Please give Your suggestions.


  • Next message: Kevin Frevert: "Re: Is ADO in D6 slower than in D5?"

    Relevant Pages

    • Re: Word mail merge with foxpro
      ... > I am trying to connect to a dbf fine not the database. ... >> I do not think you will be able to open a .dbc using ODBC by selecting ... >> using that approach (in the Select Data Source dialog, ... >>> Firstly the files of type drop down does not give a foxpro option. ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Access 2000 run-time error 80004005 - HELP
      ... try changing the column definition (make a backup of the ... > destination table is a linked table originating from a FoxPro v3 database. ... it appears MS is letting FoxPro die a slow death. ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Access 2000 run-time error 80004005 - HELP
      ... You could get the VFPOLEDB driver instead. ... I think Acess 2000 can use an OLE DB connection - it least programmatically. ... > destination table is a linked table originating from a FoxPro v3 database. ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Database Connection
      ... Database Software: FoxPro 7 ... I installed the VFPOLEDB.DLL for FoxPro 8. ... No error information available: REGDB_E_CLASSNOTREG. ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Need to open Visual Fox Pro 8 tables in VB6
      ... There are several formats of Visual FoxPro files. ... VFP6 and below are readable via ODBC. ... "database container". ... Data Sources. ...
      (microsoft.public.vb.database.dao)