Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Add a Key to a Database Programatically
Message
From
20/09/2015 10:37:51
 
 
To
20/09/2015 10:35:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01624844
Message ID:
01624845
Views:
76
FOREIGN key means it references another table.

Try INDEX ON UPPER(Email) TAG EMail




>Hello,
>
>I want to add an index defintion to a DBC programatically. The index is not a primary key, not a cadidate key and not a foreign key. It has no reference to another table.
>
>I tried
>
> ALTER TABLE (lcDataPfad + "DPERS.DBF") ADD FOREIGN KEY UPPER(EMAIL) TAG EMAIL
>
>But that gives an syntax error for the REFERENCE clause is missing.
>
>How do I add the index definition to the database?
>
>TIA
>Gerhard
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform