Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Available Indices in remote tables
Message
 
To
15/08/2002 09:27:11
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00689924
Message ID:
00689930
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform