Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can an index be temporary?
Message
 
To
30/01/2003 15:24:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00747109
Message ID:
00747407
Views:
20
>>>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform