Re: how to copy live paradox tables
- From: "Rodney Wise" <NSpamPlease_rodney1@xxxxxxxxxxxxx>
- Date: Wed, 6 Sep 2006 15:57:20 -0400
"Steven Green" wrote:
nope.. if the app aborts, crashes, etc.. the entry is left open, just like======================
the lock file (g)
As I indicated, one would have to write code to handle this potential issue.
One way to do this is to have all clients periodically update a timestamp
field in the Logon table (that I mentioned in the previous post) via an Opal
timer (say, every 3 or 5 minutes). This could be handled by your
applications Hidden Desktop Form which most apps have to handle custom
menus.
Now, anyone listed in the Login Table indicating that they are "logged on",
should never have a timestamp which exceeds the difference between now() and
the set timer period. If someone's timestamp does exceed the timer
period, then you know that they are simply no longer logged in (ie; they
"crashed" out of the program).
Upon discovering this error, you would then have your application write the
error to an error log and now that false or miss leading login record can be
safely deleted from the login table.
If the error log file continues to report this error message being produced
by the same person... (ie; you have a problem child) then you need to have a
talk with them.
But this would let you know if its safe to delete any BDE LCK files that
might be hanging around and if its safe to rename the data directory and
copy your data tables.
While this sounds complicated... it really isn't. I believe using a table
in the NET Dir to track who is on line and who isn't... is an important and
handy thing to have for all networked applications. Well worth the time and
effort to devise and implement.
--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney
.
- References:
- Re: how to copy live paradox tables
- From: Robert Molyneux
- Re: how to copy live paradox tables
- From: John Ligda
- Re: how to copy live paradox tables
- From: Rodney Wise
- Re: how to copy live paradox tables
- From: Steven Green
- Re: how to copy live paradox tables
- Prev by Date: Re: how to copy live paradox tables
- Next by Date: Re: how to copy live paradox tables
- Previous by thread: Re: how to copy live paradox tables
- Next by thread: Re: how to copy live paradox tables
- Index(es):
Relevant Pages
|