Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Id Table Utility - Does one already exist?
Message
De
26/11/2001 15:35:11
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
 
 
À
25/11/2001 21:32:05
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00585561
Message ID:
00585965
Vues:
27
>>Fellow Mere Mortals
>>
>>Does anyone out there already have a utility that will cycle thru Id.dbf and for each entry, open the table, order it by it's Primary Key, go to the bottom, get that value, increment it by 1 and then update id.dbf?
>>
>>I hate reventing the wheel. Does anyone know if the Stonefield SDT does this?
>>
>>Thanks In Advance,
>
>Gil,
>
>Why would you want to do that? The newid stored procedure does pretty much the same thing, and the id table always stores the next ID to be used. Also, as Kevin pointed out, the id table doesn't alway have to store the primary key value for a table.

James,

I have applications at client's and occasionally I have to correct a problem created by a bug in my software or from them trying to fix things themselves by doing selective restores or any of other possible scenerios where the Id table gets out of sync with the table id's. Have a 'reset' for the ID table would solve the problem and keep the error message 'a record with this information exists...' away.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform