Board index » delphi » Rewriting previous post... HOW TO FIND A RECORD
Erdem Gunay
![]() Delphi Developer |
Sun, 27 Apr 2003 03:00:00 GMT
|
Erdem Gunay
![]() Delphi Developer |
Sun, 27 Apr 2003 03:00:00 GMT
Rewriting previous post... HOW TO FIND A RECORD
Hi again,
I need help, I must get free of Locate method! Because it is too slow to Doesn't anybody use other methods to find a record using the key fields (or erdem. QuoteErdem Gunay <erdem_gu...@hotmail.com> wrote in message Quote> Hi, |
Mike Wals
![]() Delphi Developer |
Sun, 27 Apr 2003 03:00:00 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDErdem, I haven't used the tadodataset directly, and I'm not sure what you're trying To locate records, I use a seperate query. I somehow determine the key Mike Walsh Quote"Erdem Gunay" <erdem_gu...@hotmail.com> wrote in message Quote> Hi again, |
David B.
![]() Delphi Developer |
Mon, 28 Apr 2003 06:47:39 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDyou can use the ADODataSet.RecordSet.Find David agros...@arava.co.il Quote"Erdem Gunay" <erdem_gu...@hotmail.com> wrote in message Quote> Hi again, |
Erdem Guna
![]() Delphi Developer |
Mon, 28 Apr 2003 03:00:00 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDthanks alot David, but I can not use Find because Find performs search using only one criteria. this is not the case, I must be able to search a record using 4 field values.The documentation says : "Only a single-column name may be specified for the criterion. In other words, this method does not support multi-column searches." Instead of Find, Seek method can be used to search on multiple columns. However, the providers (OLE DB PROVIDER for SQL Server, OLE DB PROVIDER for ODBC Drivers) that I use do not support Seek. ! what should I do ? QuoteDavid B.E <agros...@arava.co.il> wrote in message Quote> you can use the ADODataSet.RecordSet.Find |
David B.
![]() Delphi Developer |
Mon, 28 Apr 2003 03:00:00 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDHi I have to say I never had problems with locate Myself if the fields are indexed of course, how many records are on your tables?, which database are you using? what cursor type? David agros...@arava.co.il Quote"Erdem Gunay" <erdem_gu...@hotmail.com> wrote in message Quote> thanks alot David, but I can not use Find because Find performs search |
Erdem Guna
![]() Delphi Developer |
Tue, 29 Apr 2003 03:00:00 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDHi, The problem with Locate is that Locate does not seem to use index I am using Delphi 5, ADO Express, MDAC 2.6, SQL Server 7.0. Dataset's Cursor location is clUseClient, cursor type is ctStatic. any idea ??? QuoteDavid B.E <agros...@arava.co.il> wrote in message Quote> Hi |
Bob Wasaf
![]() Delphi Developer |
Tue, 29 Apr 2003 03:00:00 GMT
Re:Rewriting previous post... HOW TO FIND A RECORDI don't know about SQL Server but I use Access2000 and if you set the cursor to server, TableDirect to true, and have an index set for the column you wish to find you can use Seek. In tests with an index set you should be able to find any record within 1 or 2 seconds even if you have over a billion records. But as I said I only have information that is valid with Access2000. ADO command Seek says you need to set the Cursor to server and TableDirect to True to work. Should work with SQL Server. Bob Quote"Erdem Gunay" <erdem_gu...@hotmail.com> wrote in message Quote> Hi, |
1. please ignore previous post...posted to wring group by mistake
2. How do I rewrite slightly modified records?
3. previous post re problem w/ pointers in units
4. Ascii import problem again (previous message didn't post right)
5. CORRECTION to previous post on ASCII tables
7. Help : Simple DLL creation ? (previous post was snipped)
8. Strange WriteBuffer behaviour (Pls ignore previous post)