HighTechTalks DotNet Forums  

Use ADO.NET to keep data between client and server in sync

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Use ADO.NET to keep data between client and server in sync in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Anthony Malt
 
Posts: n/a

Default Use ADO.NET to keep data between client and server in sync - 01-03-2006 , 03:20 AM






Hi,

my server has a database table. I read this table on the server into a
dataset and my client retrieves it through a webservice.

No changes on the client and server happen. What's the best way to keep the
data in sync?

I want to avoid that I transfer the entire dataset all the time. Is there
feature of ADO.NET which I can use to find changes and send just them?

Thanks for any hint

Anthony
--
Anthony Malt



Reply With Quote
  #2  
Old   
Cor Ligthert [MVP]
 
Posts: n/a

Default Re: Use ADO.NET to keep data between client and server in sync - 01-03-2006 , 04:20 AM






Anthony,

It seems to me that you want to check on the server those rows that are
changed or added later than the last access timestamp and merge those rows
in your datatable time by time.

Is that what you mean?

Cor



Reply With Quote
  #3  
Old   
Anthony Malt
 
Posts: n/a

Default Re: Use ADO.NET to keep data between client and server in sync - 01-03-2006 , 05:30 AM



Hi Cor,

yes, exactly. In addition I looking for a method to send my client changes
in an elegant manner to the server.

Any thoughts?

Thanks
Anthony

--
Anthony Malt



Reply With Quote
  #4  
Old   
Cor Ligthert [MVP]
 
Posts: n/a

Default Re: Use ADO.NET to keep data between client and server in sync - 01-03-2006 , 06:02 AM



Anthony,

My thoughts are as my question. Create datestamps as items in every table on
the (database)server.

Create two kind of services one to get the whole datatable and one where the
timestamp is newer than the previouw retrieval of the data.

And than merge of course the data using the merge in the old datatable.
(What should be easy as long as you give the primary key in the tables or
probably even better in this case add it on the client side).

http://www.vb-tips.com/default.aspx?...f-de3a5d92b14a

I hope this helps,

Cor



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.