Solved

How to function "SEEK" of TADOTable

Posted on 2002-07-10
2
632 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 304
Convert a string into a TDateTime 5 61
Breakpoint doesn't stop in my variable 3 27
DBCtrlGrid, Delphi, Scroll 8 14
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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