Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with indexes..
Message
From
01/04/2000 18:40:58
 
 
To
01/04/2000 16:29:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00353958
Message ID:
00353981
Views:
17
>I have a database with several tables, the tables have principal indexes, but when I want to add a record with a key value that exist but is deleted,i can't because the key must be unique.How can I solve this problem ?

Don't recirculate keys is the best solution. AN alternative that gives some partial success is to embed a FOR clause in the index, but recreation of the index can be an issue, it will not be usable for Rushmore optimization, and should you ever try to recall a recirculated key or do not properly regulate reallocation of n out-of-sequence key in recirculation, you invite lots of trouble. You also create problems if you ever move from the native VFP file system, whose concept of records flagged as deleted but still present is not very portable.
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