Solved

How to function "SEEK" of TADOTable

Posted on 2002-07-10
2
626 Views
Last Modified: 2012-06-22
Dear All Advisor !

When i use function "seek" of ADOTable, i get the error "

"Object or Provider is not capable of performing requested operation"


How will i set the value of Table's property. I have already created index on table. And i also set ADOTABLe's Indexname  With the name of index field

I suppose that function SEEK will be more faster than Function Locate. IS that true. Now, i use function locate. But it is still fast.

Thank for all
0
Comment
Question by:NamCit
2 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 20 total points
ID: 7145254
Hello

>>  I suppose that function SEEK will be more faster than Function Locate. IS that true

No, it's not true, Locate is smart, when there's an index it will use it, and if there's no index, it will perform the normal search method

Best regards
0
 

Author Comment

by:NamCit
ID: 7145569


Now, i use ADOQuery to find a ID, but i should write more code lines to do it than using "Locate" function.

I use TADOQuery to excecute a SQL Statement. I do not use TADOCommand , TADODataSet. Because i do not know the Strength of them.

Please make the comperasion between TADOQuery and TADOCommand, TADODataSet




0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 126
how to send memory stream from ics Client To ics server ? 11 81
Performance of SQL statement 37 98
How to build JSON File in Delphi 6 3 11
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now