Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index problem
Message
From
29/06/1999 17:06:01
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00235524
Message ID:
00235530
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>Hi!
>
> Let's me describe my problem:
> I have a DataDictionary.DBC which contains several tables, one of them is DataDict, which describes all fields in all my tables, another table is IndxDict, which describes indexes in all my tables. It has this structure:
>Table - Character (name of table)
>TagName - Character
>IndexExpr - Memo
>Type - Character (Primary, Regular, Candidate, etc.)
>Filter - Memo.
>
> As you can guess, this DataDictionary uses to generate our life DataBase with all tables and Indexes.
>
> I wrote a code for table generating, but have some problems with Indexes.
>
> In help I read:
>
> INDEX ON eExpression TO IDXFileName | TAG TagName [OF CDXFileName]
> [FOR lExpression]
> [COMPACT]
> [ASCENDING | DESCENDING]
> [UNIQUE | CANDIDATE]
> [ADDITIVE]
>
> I didn't see Primary or Regular here in this Syntax.
>
> Could you please help me with this? I mean, which command I need to use to create indexes using my IndxDict.
>

A Regular index is an index with no qualifier.

A primary key is nothing more than a CANDIDATE key established in the database container as a Primary key. It needs to be created and added to the table within the database container using the ALTER TABLE statement rather than the INDEX statement.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform