Board index » delphi » Removing a primary index
Michael Simons
![]() Delphi Developer |
Mon, 04 Aug 2003 02:10:48 GMT
Removing a primary index
I am looking to remove the primary index from a table. The Delphi help for
the for the TTable.DeleteIndex procedure says that it cannot be used to remove a primary index. The question I then have is how would you remove the primary index? If you delete the item for the primary index from the TTable.IndexDefs list will it update the table properly? Or will the DeleteIndex procedure work properly if you remove all secondary indexes first? I have been told that even within Paradox you cannot remove the primary index from a table if there are any secondary indexes on the table. And that you need to remove the secondary indexes first, before the primary is able to be removed. Anyone have any suggestions? Thanks In advance. |