Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Key Violation
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00245748
Message ID:
00245788
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform