Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding existing index type
Message
De
05/07/1999 10:54:02
 
 
À
05/07/1999 04:04:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00237416
Message ID:
00237489
Vues:
14
>The question is: how can I tell what the index type is? If I can tell that the index in the table in question has already been changed to a regular index, I obviously will not apply the "fix" a second time. I have not been able to find a command that can tell me that ... anybody know if there is one? If not, any suggestions as to how I can tell the index type so that I don't have to re-index unncessarily?
>

You can use the CANDIDATE() function to check if the index in question is a candidate key (a primary key is just a special instance of a candidate key) or a regular key. You'll need to retrieve the Tag Number for the index in question, sinc the argument passed to the CANDIDATE function is a tag number not a tag name. You can use TAGNO() to retrieve the tag number for a given tag name.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform