Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Available Indices in remote tables
Message
De
15/08/2002 09:50:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00689924
Message ID:
00689934
Vues:
18
Thanks George.

I put that statements sequence in a prg and run it, but got a "Class definition sqldmo.sqlserver is not found" error message.

Please note that I don't have SQL Server installed in my PC, perhaps that's the problem, and that's why I need a VFP program do get the indices.

Fernando


>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform