473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

how to update db after being disconnected for 10 minutes?

I have an asp.net app, and suddenly, I lose connection to the web server.
I'd like a way -- if the update doesn't go thru, to 'cache' the changes to
the dataset.
Then the next time the user hits update, and the connection is restored, it
updates the db.

This applies for a WindowsCE device where the user is moving around, and may
not be able to connect for a few minutes at a time, but he/she is still
making changes to the app. I don't need for them to be able to retrieve
from the db, its enough that they can do updates, deletes etc on a
recordset stored on the device somewhere, and then when it connects again to
the web server, it does the updates / deletes etc.

Is this a dream or is there actually some way to do this.
I've been asking on the mobile newsgroup but not that much available there.
TY --- Jason Shohet
Nov 18 '05 #1
5 1152
Jason Shohet wrote:
I have an asp.net app, and suddenly, I lose connection to the web server.
I'd like a way -- if the update doesn't go thru, to 'cache' the changes to
the dataset.
Then the next time the user hits update, and the connection is restored, it
updates the db.

This applies for a WindowsCE device where the user is moving around, and may
not be able to connect for a few minutes at a time, but he/she is still
making changes to the app. I don't need for them to be able to retrieve
from the db, its enough that they can do updates, deletes etc on a
recordset stored on the device somewhere, and then when it connects again to
the web server, it does the updates / deletes etc.

Is this a dream or is there actually some way to do this.
I've been asking on the mobile newsgroup but not that much available there.
TY --- Jason Shohet

Jason,
Theres defenitely differnet ways to do this based on the effort. In
principle what you need is some kind of a proxy that caches every data
element which is headed to the server. And that involves development.
Usually IMHO the best way to go about it is to develop a WS on the
server side and talk to it through a Winforms client, for these kind of
solutions.
--
Regards,
Dilip Krishnan
dilip removethis @ msn.com
Nov 18 '05 #2
One word answer, Datasets.
Study dataset, because that's the exact purpose of them..
Reza
Nov 18 '05 #3
Thanks.
Yes that was my thinking too, versus writing to some local "oracle lite' or
'sql ce' database if I can't connect. And then have to bridge / synch that
data back up to our main Oracle 9i database later -- yuck.

The one thing I don't get is how to keep the dataset around as the user is
hitting save etc, which calls postbacks. If the browser becomes
disconnected from the web, where is the dataset going to go between
postbacks? I can't put it in a session because that goes on the web
server -- and there is no web server if I'm disconnected. Any ideas on
that?
Nov 18 '05 #4
Hi Dilip,

See my reply to Rezas. I know how to hit a WS (web service) from a windows
app but only if it can find it. If my windowsCE device is not connected to
the web, how can i find the web service -- via a windowsforms app or a
asp.net app :)

And by the way, I'm not worried at all about concurrency. There's no
possibility others will be writing to the same records as I am. So my
thinking is to somehow deal with a disconnected dataset. I just don't know
how to keep that dataset around as the user is making changes to the
records, between postbacks -- since i can't put it in a session. If I can
somehow keep it around, then I can use that dataset commandBuilder (which
I've never used but sounds interesting), to say "Hey Oracle, I've got this
dataset thats been sitting around here for 10 minutes, disconnected from
you. Reconcile this dataset with the main database, making any changes
necessary to the main db!"
Nov 18 '05 #5
Idunno much about CE, but is it possible for you to use serialization?
Serialize the DataSet to an xml file and store it locally, then, when your
connection comes back up, check for any serialized datasets you have stored,
de-serialize it/them and send them back to the server/gateway.

Of course, i'm assuming that the device has RAMFS capabilities.

David Young

" Jason Shohet" <as****@hotmail.com> wrote in message
news:ub******************@TK2MSFTNGP09.phx.gbl...
I have an asp.net app, and suddenly, I lose connection to the web server.
I'd like a way -- if the update doesn't go thru, to 'cache' the changes to
the dataset.
Then the next time the user hits update, and the connection is restored, it updates the db.

This applies for a WindowsCE device where the user is moving around, and may not be able to connect for a few minutes at a time, but he/she is still
making changes to the app. I don't need for them to be able to retrieve
from the db, its enough that they can do updates, deletes etc on a
recordset stored on the device somewhere, and then when it connects again to the web server, it does the updates / deletes etc.

Is this a dream or is there actually some way to do this.
I've been asking on the mobile newsgroup but not that much available there. TY --- Jason Shohet

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jason | last post by:
Is there a way - possibly a disconnected rs? - to update the contents of an existing pulldown on a page without having to re-submit the page for the user to see the pulldown populated with an...
3
by: J.D. Buehls | last post by:
I have a bit of code that goes through a recordset and renumbers the records from 1 to X. I could swear that this code worked before but now when it is run, all of the records end up being...
2
by: Mike Leahy | last post by:
Hello all, This question is related to updating tables - is there any way to calculate or update the values in a column in a table to the values in a field produced by a query result? An...
0
by: Vijay Balki | last post by:
I am fetching data in DataSet - myDataSet, from a remote database using a Web Service in my VB.NET client..Once I fetch it I store the data in XML file (myXMLFile) using the WriteXML method of the...
8
by: rriness | last post by:
I'm getting an inconsistent failure when trying to save data in ADO.Net. I'm using an Access database with a simple query - SELECT StudentID, FirstName, LastName FROM Students - and have no...
29
by: Geoff Jones | last post by:
Hi All I hope you'll forgive me for posting this here (I've also posted to ado site but with no response so far) as I'm urgently after a solution. Can anybody help me? I'm updating a table on...
4
by: Lada 'Ray' Lostak | last post by:
Hello there, I am thinking how to solve another typical problem of online systems with combination of thin client... Imagine simple case, 2 users are going to edit 'same' datas. Both see on the...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
13
by: Neil | last post by:
I'm running an update query in SQL 7 from QA, and it runs forever. Has been running for 20 minutes so far! The query is quite simple: update a single field in a table, based on a join with another...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.