Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for update to finish before refresh...

Status
Not open for further replies.

bugzy

MIS
Feb 24, 2006
9
US
Hi,

My application sends an update to the database then does the refresh of the data, the problem is for users in a remote location, the refresh hits the database before the update does... what is the best way to solve this???

Thanks.
 
How are you doing the update? Bound objects, or SQL Command objects?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
If the update and the select are both using the same connection object, this shouldn't happen, as the commands are serialized per connection to preserve order.

You can see this is so by adding a new row to a table that uses an Indentity column, and issuing a Select to return the new value. If they happened out of order the Select would fail.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top