Solved

How to function "SEEK" of TADOTable

Posted on 2002-07-10
2
647 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show Listview image from database (String field) 5 187
How to debug For loops? 3 74
Find and Replace Stream with 0s 8 87
Broadcast a message using ICS 2 50
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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