DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    rkbnair Guest

    Recordset.find method too slow


    Listen to my requirement please.

    I have a list of 10 values. I have to process a table and get the description
    of these 10 values from the table. What I did was, created a record set and
    used a find method to find the data.
    But this process took long time since after each find, I have to move the
    cursor point to the first using "

    rstexpressd.MoveFirst

    Is there any short cuts for this which will reduce the time of processing?



  2. #2
    Daniel Reber Guest

    Re: Recordset.find method too slow

    If you already know the 10 values that you need why don't you return a
    recordset based only on those values.
    For example:
    SELECT * FROM mytable WHERE myid IN(vaule1,value2,value3......)

    Daniel Reber, MCP

    rkbnair <rkannale@solus1.oceaneering.com> wrote in message
    news:391c7be6$1@news.devx.com...
    >
    > Listen to my requirement please.
    >
    > I have a list of 10 values. I have to process a table and get the

    description
    > of these 10 values from the table. What I did was, created a record set

    and
    > used a find method to find the data.
    > But this process took long time since after each find, I have to move the
    > cursor point to the first using "
    >
    > rstexpressd.MoveFirst
    >
    > Is there any short cuts for this which will reduce the time of processing?
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links