Article View: borland.public.cppbuilder.database.ado
Article #1845Re: TADOQuery and Access DB Indices
From: Alain M. Dube
Date: Thu, 22 Jan 2004 23:22
Date: Thu, 22 Jan 2004 23:22
80 lines
3438 bytes
3438 bytes
Thanks Viatcheslav; You've been very helpful. Regards; Al Dube "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message news:400ffff4@newsgroups.borland.com... > If you need to do the search once, use SQL, if you need to do multiple > searches in one table, use Seek. BTW, indeces are supported for MS Jet but > usually OLEDB providers do not support indeces. For example, OLEDB provider > for MS SQL Server does not support them. > > //------------------------------------------ > Regards, > Vassiliev V. V. > http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net > http://www.oledbdirect.com - The fastest way to access MS SQL Server, > MS Jet (Access) and Interbase (through OLEDB) > > "Alain M. Dube" <adube@cadencesoftware.com> �������/�������� � �������� > ���������: news:400fda69$1@newsgroups.borland.com... > > Hi Vassiliev; > > > > Thanks for the info. Do you have any idea what the performance > > characteristics are for searching an Access database using TADOTable->Seek > > vs. TADOQuery with SQL statements? > > > > Thanks again. > > > > Regards; > > > > Al Dube > > > > > > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message > > news:400fcfe1$2@newsgroups.borland.com... > > > TADOQuery can not use indeces. Use TADOTable with CursorLocation = > > > clUseServer and TableDirect = true. > > > > > > //------------------------------------------ > > > Regards, > > > Vassiliev V. V. > > > http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net > > > http://www.oledbdirect.com - The fastest way to access MS SQL Server, > > > MS Jet (Access) and Interbase (through OLEDB) > > > > > > "Alain M. Dube" <adube@cadencesoftware.com> �������/�������� � �������� > > > ���������: news:400eb1ef$1@newsgroups.borland.com... > > > > Hello; > > > > > > > > How do queries via SQL statements in a TADOQuery object make use of a > > > target > > > > MS Access Database's indices? Do the fields named in a SELECT > statement > > > > drive the use of anparticular index? Is there a direct way to specify > > > which > > > > index to use in a query? > > > > > > > > Thanks in advance for the help. > > > > > > > > Regards; > > > > > > > > Al Dube > > > > > > > > > > > > > > > > > > > >
Technical Details
Message-ID:
<40105b37$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<400eb1ef$1@newsgroups.borland.com> <400fcfe1$2@newsgroups.borland.com> <400fda69$1@newsgroups.borland.com> <400ffff4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,9542d688c47386fc X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-22 15:40:08 PST From: "Alain M. Dube" <adube@cadencesoftware.com> Newsgroups: borland.public.cppbuilder.database.ado References: <400eb1ef$1@newsgroups.borland.com> <400fcfe1$2@newsgroups.borland.com> <400fda69$1@newsgroups.borland.com> <400ffff4@newsgroups.borland.com> Subject: Re: TADOQuery and Access DB Indices Date: Thu, 22 Jan 2004 18:22:29 -0500 Lines: 82 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.2.157.230 Message-ID: <40105b37$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074813751 24.2.157.230 (22 Jan 2004 15:22:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail