Re: Resync or Requiry
From: Michael Tissington (michael_at_nospam.com)
Date: 03/05/04
- Next message: .NET Developer: "Re: Latest MDAC update"
- Previous message: Sam Lau: "VB DataReport (Store Procedure + Grouping) = Parameter Error???"
- In reply to: Kevin Yu [MSFT]: "RE: Resync or Requiry"
- Next in thread: Kevin Yu [MSFT]: "Re: Resync or Requiry"
- Reply: Kevin Yu [MSFT]: "Re: Resync or Requiry"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Mar 2004 10:18:18 -0800
Keven,
Thanks but this really did not answer my question.
The recordset returns a SINGLE row only .... so there will not be any new
rows, but the data may have changed for some of the columns.
When I look at profiler I see the following
1) Requery - A single trip to the server with the original SELECT
2) Resync - The original SELECT has been taken apart and a SELECT is being
issued against for each of the tables in the original SELECT (so multiple
trips to the server)
I guess I'm answering my own question here, that for a recordset that
returns a single row, a requery is better than a Resync.
-- Michael Tissington http://www.oaklodge.com http://www.tabtag.com "Kevin Yu [MSFT]" <v-kevy@online.microsoft.com> wrote in message news:7pc1E3YAEHA.2304@cpmsftngxa06.phx.gbl... > Hi Michael, > > Thank you for posting in the community! > > First of all, I would like to confirm my understanding of your issue. From > your description, I understand that you need to know the performance > difference between Resync and Requery method. If there is any > misunderstanding, please feel free to let me know. > > Based on MSDN document, Requery method updates the data in a Recordset > object by re-executing the query on which the object is based while Resync > mehod refreshes the data in the current Recordset object, or Fields > collection of a Record object, from the underlying database. > > Unlike the Requery method, the Resync method does not re-execute the > Recordset object's underlying command. New records in the underlying > database will not be visible. It just looks in the data source for changes, > and then refresh the current Recordset. So generally, I think the Resync > method might be faster in performance. > > For more information about Requery method and Resync method, please check > the following links for reference: > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > mdmthadorequery.asp > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > mdmthadoresync.asp > > Does this answer your question? If anything is unclear, please feel free to > reply to the post. > > Kevin Yu > ======= > "This posting is provided "AS IS" with no warranties, and confers no > rights." >
- Next message: .NET Developer: "Re: Latest MDAC update"
- Previous message: Sam Lau: "VB DataReport (Store Procedure + Grouping) = Parameter Error???"
- In reply to: Kevin Yu [MSFT]: "RE: Resync or Requiry"
- Next in thread: Kevin Yu [MSFT]: "Re: Resync or Requiry"
- Reply: Kevin Yu [MSFT]: "Re: Resync or Requiry"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|