Re: VFP Driver Question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark Smith (marksmit_at_nortelnetworks.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 09:33:20 -0500

Hi. To answer Josh's question, we are using ODBC. The way our refresh
works, is we run an Access script which deletes all data in our MS Access
table, and then selects all records from the dbf file into a recordset and
inserts them into the Access table. It's a very simple process, but for
some reason some of the records in our production process get their data
mixed in with records of others...but is fine in our development
environment. It is very inconsistent, meaning it doesn't happen to the same
records every time, and sometimes it doesn't happen at all. In each
environment, the deleted check box is checked. Thanks a lot.

"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:Oz0YSAC2EHA.804@TK2MSFTNGP12.phx.gbl...
> Hi Mark,
>
> The latest FoxPro and Visual FoxPro ODBC driver is downloadable from
> http://msdn.microsoft.com/vfoxpro/downloads/updates/default.aspx.
>
> You haven't said anything about the process by which the Access database
> table is refreshed. Does the refresh add data or also change existing
> records? Are you absolutely sure there are no duplicate records, including
> deleted records?
>
> Are you picking up deleted records? There is a setting in the Fox ODBC
> driver where checking the Deleted box corresponds to Set Deleted On which
> causes deleted records to be ignored. Since this setting is in the ODBC
> setup it will vary from one machine to another as you describe.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
>
>
> "Mark Smith" <marksmit@nortelnetworks.com> wrote in message
> news:coleem$3sb$1@zcars0v6.ca.nortel.com...
> >I have a simple MS Access database table which is refreshed every week
with
> > data from a dbf file using Visual Fox Pro driver version 6.01.8630.01.
> > The
> > table has an id column, first name, last name and ssn. The problem is,
> > sometimes after the refresh has finished, some of the records will have
> > data
> > from another record. For example, John Doe will have Jane Doe's id and
> > Billy Bob will have Johnny Doe's SSN. This only happens to a couple of
> > records...maybe 2 or 3 out of 40,000 total records.
> >
> > However in our development environment, which has the exact same
database,
> > accessing the same dbf file, but using Visual Fox Pro driver version
> > 6.00.8440.00, it works perfectly. Both environments use Windows NT. Is
> > there an issue with this particular driver version? Thank you.
> >
> >
>
>



Relevant Pages

  • Re: VFP Driver Question
    ... The latest FoxPro and Visual FoxPro ODBC driver is downloadable from ... Does the refresh add data or also change existing ... Are you picking up deleted records? ... Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP ...
    (microsoft.public.fox.vfp.dbc)
  • RE: ODBC linked tables -- can I refresh them all at once?
    ... you are replacing the DSN string of the old ODBC with that of the ... I use the following VBA code to edit the table DSN ... > I seem to remember that I used to be able to refresh all linked ODBC tables ...
    (microsoft.public.access.modulesdaovba)
  • Re: Refreshing linked tables
    ... You can 'refresh' from an MDB to an ODBC link, ... have our own little Access database with our own tables and some Linked ODBC ...
    (microsoft.public.vb.database)
  • Deleted Records and DataAdapter.Fill
    ... Why DataAdapter.Fill does not refresh the deleted records in the dataset? ... If this is by design then how can I refresh the data and get rid of removed ... I have a DataAdapter refering to a table in database. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Help updating a table
    ... ODBC, and use queries to see only that data you wanted to? ... I am getting my data from an ODBC connection, ... application refresh all the data when the user clicks on a button. ... I was thinking of a update query but im not sure how to do this. ...
    (microsoft.public.access.queries)