Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique Key Violation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00245748
Message ID:
00245788
Vues:
22
>I just ran across something that seems to work [based on a Foxpro Advisor tip]:
>
>keyfield+IIF(DELETED(),BINTOC(RECNO()),SPACE(4))
>

This has unanticipated results at times, especially when RI rules are considered. In many cases, the primary key is also embedded in any number of child records, and PACKing a table results in strange things happening when you need to cascade the effects of permanent deletion or record RECALL (you strand children; if you use the default RI generated by VFP, you have problems with RI and composite primary keys IAC.)

Just say NO to recycling primary keys...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform