Subject | Re: Firebird database structure question |
---|---|
Author | lysander_fb |
Post date | 2005-06-13T09:14:18Z |
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...> wrote:
transaction-logic with commit() and rollback(). Best you combine it
with Try/Endtry/Finally-statements.
This protects against power-loss as well as Firebird does.
If a 'dBase-Programmer' does not use such security-functions...
well... just too bad for him and his customers.
just copying it back?
How about making a restore while users are connected and active?
I am sure that there are more possibilities :)
Of course, they are quite stupid in a certain sense. But only the same
stupidity or carelessness can break a dBase-database as easy. At least
this is what I saw in ALL cases of a broken dBase-database; just
carelessness.
If dBase would not be stuck on/with the BDE, I would most likely NOT
convert to Firebird. But it is, and so I am converting... and Firebird
is really great.
ciao,
André
> This is a stark contrast to Paradox / DBase etc, where a problemI don't know about Paradox too good, but dBL/dBase fully supports
> during a write might leave a record in an invalid state.
transaction-logic with commit() and rollback(). Best you combine it
with Try/Endtry/Finally-statements.
This protects against power-loss as well as Firebird does.
If a 'dBase-Programmer' does not use such security-functions...
well... just too bad for him and his customers.
> There are only three ways I can see that an application developerHow about copying an *.fdb while transactions are running and later
> could accidentally stuff a database.
>
> 1. Inside a UDF
> 2. Running in embedded mode
> 3. Turning Forced Writes Off
just copying it back?
How about making a restore while users are connected and active?
I am sure that there are more possibilities :)
Of course, they are quite stupid in a certain sense. But only the same
stupidity or carelessness can break a dBase-database as easy. At least
this is what I saw in ALL cases of a broken dBase-database; just
carelessness.
If dBase would not be stuck on/with the BDE, I would most likely NOT
convert to Firebird. But it is, and so I am converting... and Firebird
is really great.
ciao,
André