Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

corrupt or damage table.

13 views
Skip to first unread message

Patrick Tura

unread,
Jul 11, 2009, 6:09:11 AM7/11/09
to
Hi!

Have experience corruption of a dbf file? Im just puzzled that some table
have a tendency to become corrupted frequently particulary those are access
regularly some that are seldom access are ok.

However, everytime, I experience corruption, I can repair it but I want to
understand what could be the possible reason why such situation can happen?

Do you think it has to do with many users accessing the same table at the
same time?

or do you think it has to do with hardware?

Today, most often linking different tables is quite common method to get a
certain data but that is normal? But it the table should get damaged?

I have three table that are regularly use, biodata.dbf, book.dbf and
contracts.dbf. Biodata contains the name of our clients and book contains
the detail transactions while contracts.dbf is containing the detail of the
contracts and the three are link with client_id among the common field.

but so far, I observed that contracts.dbf most often got corrupted. when it
is corrupted the encoder cannot add new record. This is frequent happening.

Any idea?

/patrick

Stefan Wuebbe

unread,
Jul 12, 2009, 5:13:02 AM7/12/09
to
> However, everytime, I experience corruption, I can repair it but I want to
> understand what could be the possible reason why such situation can happen?

I'd say DBF corruption may happen when FoxPro is getting interrupted
during a write attempt.
So the causes can be failing hardware/drivers/network/power supply.
And 3rd party tools being hooked into Windows file operation events,
like AntiVirus tools, for instance. And third, probably lees likely, would
be "plug-pulling" users.

So while good practice might include using data buffering and keep
TableUpdate() attempts / Transactions as short as possible, if corruption
occurs frequently in a given environment, the only way to actually solve
the issue would be outside VFP.

hth
-Stefan


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------

Patrick Tura

unread,
Jul 13, 2009, 3:09:20 AM7/13/09
to
Thanks a lot for your reply Stefan.

I can see that it is a deep problem technically:-)

Thanks a lot.

Patrick Tura

"Stefan Wuebbe" <stefan...@gmx.de> wrote in message
news:O7CX3DtA...@TK2MSFTNGP02.phx.gbl...

Stefan Wuebbe

unread,
Jul 13, 2009, 3:45:33 AM7/13/09
to

"Patrick Tura" <pat...@kff.ph> wrote in message
news:A4EE48AD-C4DE-40CF...@microsoft.com...

> Thanks a lot for your reply Stefan.
>
> I can see that it is a deep problem technically:-)

You are welcome :-)

Can you track down what the cause(s) might be, e.g. power supply
failures, unreliable file server or network devices, or so?

Regards
-Stefan

Craig Berntson

unread,
Jul 13, 2009, 12:56:50 PM7/13/09
to
- NEVER use Browse. It accesses the tables directly and is definately a
cause of corruption that I've seen
- ALWAYS use buffering. Never directly edit the table, but use a view,
cursor, or memvars, then update the actual table
- Make sure users never just shutdown their PC before exiting the
application
- Check for power interruptions. Servers often have backup power,
workstations sometimes, but how about routers, switches, hubs, etc
- Verify network cabling is good and solid

--

Craig Berntson
Microsoft MVP

-------------


"Patrick Tura" <pat...@kff.ph> wrote in message

news:8477D389-5B61-4C0F...@microsoft.com...

Patrick Tura

unread,
Jul 15, 2009, 6:54:19 AM7/15/09
to
Yes, Estefan, tracing is seems to the only option I have to find out what is
really wrong.
Again, thank you very much for your time and effort. Your tips are helpful.

Patrick Tura

"Stefan Wuebbe" <stefan...@gmx.de> wrote in message

news:ecKVn34A...@TK2MSFTNGP02.phx.gbl...

Patrick Tura

unread,
Jul 15, 2009, 6:57:19 AM7/15/09
to
Hi Craig,

Thanks a lot for your tips, they are very helpful to me.
I need to probably trace down the hardware thing as you have suggested.
We will see what I will find out.

Thank You.

Patrick Tura

"Craig Berntson" <cr...@craigberntson.com> wrote in message
news:D8740F77-A931-40E8...@microsoft.com...

0 new messages