Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To store every record change or not?
Message
 
 
À
20/03/2011 12:23:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01504208
Message ID:
01504246
Vues:
80
>I am now implementing in my base BIZ class saving to audit trail table for all transactions
>
>One thing (and admittedly, I'm so far removed from FoxPro that I don't even remember if Fox databases have triggers)....if you can do this in the database with triggers, you're better off.
>
>Logging should be a function of the database, not the application. It may seem like a good idea to implement logging in your application code - but any data changes that occur outside your code won't get logged. Though people want to say otherwise, the truth is that changes occur outside the application.
>
>That's the beauty of triggers or even Change Data Capture in SQL 2008 - you put them in the database and they're like "Big Brother" - they see everything.
>
>But if Fox doesn't have DB triggers, then you either have to put the logic in your application code, or look for a 3rd party solution, or maybe someone else who is working with Fox has another idea.....

VFP does have DB triggers.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform