Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can an index be temporary?
Message
 
À
30/01/2003 15:24:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00747109
Message ID:
00747407
Vues:
21
>>>>>Several tables are related in a form. I'd like to order the main (navigation) table by a description field that is in one of the reference tables without using views. Is there a way to create a temporary index that will just disappear when the tables are closed, eliminating future problems if the application should have an abnormal ending?
>>>>>
>>>>>TIA,
>>>>>
>>>>>Alex
>>>>
>>>>Try using: INDEX ON eExpression TO IDXFileName
>>>>
>>>>IDXFileName can be anything and will have to be deleted after use (unless you want to keep it around)
>>>
>>>It could also be deleted at application startup, then create another afterwards. This way an abnormal end previously should cause no problems in its regard.
>>
>>Great sugestion Jim
>>
>>Einar
>
>To avoid problems with multi-user access, a temporary index should not have a fixed name. Assign sys(2015) to a variable, create the index with that name, and delete it later.
>
>Hilmar.

Yes we use a tempname function with the random generator function to ensure unique(well close to unique) idx name.

Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform