Article View: borland.public.cppbuilder.database.ado
Article #1843Re: TADOQuery and Access DB Indices
From: Viatcheslav V. Vassiliev
Date: Thu, 22 Jan 2004 16:53
Date: Thu, 22 Jan 2004 16:53
62 lines
3400 bytes
3400 bytes
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:
<400ffff4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newshosting.com!nx02.iad01.newshosting.com!216.196.98.140.MISMATCH!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<400eb1ef$1@newsgroups.borland.com> <400fcfe1$2@newsgroups.borland.com> <400fda69$1@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 09:03:23 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <400eb1ef$1@newsgroups.borland.com> <400fcfe1$2@newsgroups.borland.com> <400fda69$1@newsgroups.borland.com> Subject: Re: TADOQuery and Access DB Indices Date: Thu, 22 Jan 2004 19:53:07 +0300 Lines: 64 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: 213.234.218.42 Message-ID: <400ffff4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074790388 213.234.218.42 (22 Jan 2004 08:53:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newshosting.com!nx02.iad01.newshosting.com!216.196.98.140.MISMATCH!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail