Hi,
I need an example of How to create an index of a fox table with ADOX,
using VFP8 OLEDB Provider.
Thank you,

Gonzalo Ferreyra
Córdoba, Argentina

Re: Example of create index with ADOX by Cindy

Cindy
Sat Mar 06 21:16:36 CST 2004

In news: uiPTMLrAEHA.3712@tk2msftngp13.phx.gbl,
Gonzalo Ferreyra <gferreyra@capatazsoft.com.ar> wrote:
> I need an example of How to create an index of a fox table with
> ADOX, using VFP8 OLEDB Provider.

Hi Gonzalo,

The following KB article should get you started:

"FIX: Index Created Using ADOX and the Visual FoxPro OLE DB Provider
Contains the TRANSFORM Function"
http://support.microsoft.com/?id=314653

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com




Re: Example of create index with ADOX by Anders

Anders
Sat Mar 06 09:58:06 CST 2004

ALTER TABLE x ADD FOREIGN KEY y TAG z REFERENCES Table2 [TAG tagname]
This works only if you have the VFP table in a database and a Primary Key
somewhere youi can use as reference. A regular index will be created but the
PK reference will not have any further consequences.
Primary Key and Unique (Candidate) indexes can also be created with ALTER
TABLE. If there's no table with a PK you can use as reference for the FK,
you can create one for this purpose, then drop it if you like..
Yiou'll need Exclusive access to the database and table,
-Anders


"Gonzalo Ferreyra" <gferreyra@capatazsoft.com.ar> wrote in message
news:uiPTMLrAEHA.3712@tk2msftngp13.phx.gbl...
> Hi,
> I need an example of How to create an index of a fox table with
ADOX,
> using VFP8 OLEDB Provider.
> Thank you,
>
> Gonzalo Ferreyra
> Córdoba, Argentina
>
>