🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3906

Re: @nd Post--Setting a Column to 'Optimize'

#3906
From: Jerry Irons
Date: Sat, 11 May 2002 03:43
15 lines
1362 bytes
I believe the Optimize property you are referring to creates an index
based on the field that you are setting Optimize to true on.

In CB 5 Pro, you have to do something like this:  (I can't use 6 yet)

ADOTable1->IndexName = "LastName";

Hopefully "LastName" is an already created index.  If not you'll have
to create it first.

I would use ADODataset, and run an SQL query using "order by" where
appropriate in your command text string.  Performance may dictate what
solution to use.

-Jerry
Technical Details
Message-ID: <rf4pdu0sse3ci1efdkoh64qniev66565hs@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3cd81f03$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,6cc25c11f34dce75
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-05-10 20:45:25 PST
From: Jerry Irons <JIrons@compuserve.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: @nd Post--Setting a Column to 'Optimize'
Date: Fri, 10 May 2002 23:43:48 -0400
Message-ID: <rf4pdu0sse3ci1efdkoh64qniev66565hs@4ax.com>
References: <3cd81f03$1_1@dnews>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.54.10.7
X-Trace: dnews 1021088680 24.54.10.7 (10 May 2002 20:44:40 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews