Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add Date/Time stamp to tables in dbc.
Message
 
À
09/03/1999 20:49:37
Susan Giddings
Aar Engine Component Services
Windsor, Connecticut, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00195409
Message ID:
00406038
Vues:
26
One thing that I'm doing on a current project (where the data store is Oracle and MSSQL7) is adding these columns to every table -

creation_dt datetime
last_update_dt datetime
deletion_dt datetime
logically_deleted_yn c(1) (index on this column)
created_by_user_id n(16)
last_updated_by_user_id n(16) (index on this column)
deleted_by_user_id n(16)


Using a column for deleted records instead of the VFP engine's deleted() flag should let you use Erik's timestamp idea/code in a record-validation rule since as far as VFP is concerned, the record isn't truly "deleted" so the rule should always fire. I have also been told by more than a few DBAs that having the above columns is "the standard", so it should make cross VFP-RDBMS projects smoother for you in the future.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform