Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Key in Views
Message
From
20/01/1999 10:51:37
 
 
To
20/01/1999 08:26:39
Carla Silva
Http - Produtos Informaticos, Lda.
Odivelas, Portugal
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00177938
Message ID:
00178016
Views:
38
>My application have Views, so I create a primary key in all the tables I use in views. Because I can`t create a primary key programatically, when this index is damage, I must remove the table from database to delete the primary key, do the "REINDEX" command, join the table again to the database, MODIFY STRUCTURE to create the primary key again, all this manually. So if I create a CANDIDATE index (is a primary key with a different name) with the INDEX ON command, the Views consider this as a primary key, if not, how can I recover the primary keys programatically ?
>
>Thanks


Look at the ALTER TABLE command for programmatic creation/deletion of primary key.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform