Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Available Indices in remote tables
Message
 
À
15/08/2002 09:27:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00689924
Message ID:
00689930
Vues:
27
>Hi,
>
>There is a way (via a VFP program) to know what indices where created for a given SQL Server or Oracle table?
>
>TIA
>
Fernando,

Don't know about Oracle, but this sort of information is available through SQL-DMO. For example,
oSQLSvr = CREATEOBJECT("sqldmo.sqlserver")
oSQLSvr.Connect('(local)', 'sa', '')
oDatebase = oSQLSvr.Databases('mydatabase')
oTable = oDatebase.Tables('mytable')
oIndexes = oTable.Indexes
? oIndexes.Count
? oIndexes.Item(1).Name
? oIndexes.Item(1).Type
oColumns= oIndexes.Item(1).ListIndexedColumns
? oColumns.Count
? oColumns.Item(1).Name
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform