CRecordset: what's the fastest method?
Posted on 1998-05-07
I am using the CDatabase and CRecordset classes to implement an ODBC application. With the CRecordset class, there are two ways to get to records in a recordset - using the MoveNext() function which scrolls to the next record, which means you have to observe your member variables to see if they match your criteria. Then there's using the strFilter string which is basically a SQL WHERE clause that can be used when you call Open(). It returns your recordset. Since I am trying to locate a single record, which one would get faster results from the database? I am wanting to do this process repeatedly. Thanks in advance...