>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
Fernando,
If you know the back-end you are working with, you can branch two routes to get this information.
For SQL Server:
sqlexec(lnconn,[exec sp_helpindex 'MyTable'], 'c_indexes')
For Oracle:
sqlexec(lnconn,[select * from user_indexes where upper(table_name) = 'MYTABLE'], 'c_indexes')
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao