Re: About Disconnected Record Sets



I am using 'Find' while Deleting and updating records within the
recordset. My understanding is the Find will check the disconnected set
for
the record that matches the Find criteria and fetches the record from the
server if no record matching the criteria is found. Is this assumption
right?

If it is disconnected, how could Find _ever_ connect to the server?
In any case, why should the Server hold a record at all that matches the
criteria?
What if there is no record at all on Recordset or Server that matches the
criteria?

The answer is no.The assumption is not right.
Why don't you read the Microsoft online documentation on Find on MSDN?
See here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmthfindmethodado.asp

Find just looks for the record in a client-sided Recordset.
If nothing is found that is it. No further lookups.
It would not even lookup if connected either.

Any ideas why the performance is bad while using disconnected record
sets for Find? If anything, it should be as bad as it was while using
server
side cursor because at that point, I used to fire a SELECT query
everytime.

Find just does a linear search for your record.
If you want it faster you need to do

Fld.Properties("Optimize") = True

for the field you are finding on and don't forget to do

Fld.Properties("Optimize") = False

when you have finished.
See here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdprooptimizepropertyrds.asp

Stephen Howe


.



Relevant Pages

  • Re: time criteria in query
    ... Query with Time Criteria Returns No Records from Microsoft SQL ... type I'm using in SQL server? ...
    (microsoft.public.access.queries)
  • Re: 2003 Network Design Request for Reco
    ... The criteria is to provide a robust network system that has disaster ... and is fault tolerant using Windows 2003 server. ... I suggest you to hire a consultant that does this work for you. ... redundancy, file shares just need R2 with DFS and DFS-R for full ...
    (microsoft.public.windows.server.general)
  • Re: Update table from ODBC
    ... criteria are interpreted differently. ... SQLGetInfo and SQLGetTypeInfo to ask the ODBC driver whether the server ... If you want, post the SQL Strings of your Pass-Through Query, your Append ... Query using the Pass-through and your Append Query using ODBC-linked Table ...
    (microsoft.public.access.queries)
  • Re: performance logs and alerts
    ... If your server is crashing or hanging you might want to ... download our ReJuvin8 tool. ... ReJuvin8 has both an automatic and a custom mode. ... > out there that explain each and every criteria that would be great too. ...
    (microsoft.public.inetserver.iis)
  • Re: Global variables are slowing down the query
    ... >>IME if the function has no parameters Access will call it only ... If it's in the criteria and it doesn't take an argument why in the ... server as the criteria to filter on. ... Since the function is client-side, all the data has to be ...
    (comp.databases.ms-access)