No, DataSet does not know WS has some data already (in fact it has no idea
where data came from), so I sends everything.
In desktop framework you can use DataSet.GetChanges() to get modified rows.
This method is unavailable in CF V1 (available in CF V2), however.
You can easily create a workaround:
1. Clone the DataSet (won't copy data, just schema).
2. For each DataTable in DataSet
3. For each DataRow in DataTable
4. Check DataRowState
5. If it's not Unchanged, add it to cloned table.
6. Send cloned DataSet which now contains changed data.
Alternatively, you could use SQL Client to interact with SQL Server
database directly.
That would be significantly faster than WS and would only update changed
rows for you without extra work on your side.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: "Florian Lutz" <(E-Mail Removed)>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> Subject: datasets over webservice / size
> Date: 20 Dec 2004 00:32:45 -0800
> Organization: http://groups.google.com
> Lines: 10
> Message-ID: <(E-Mail Removed)>
> NNTP-Posting-Host: 203.217.8.66
> Mime-Version: 1.0
> Content-Type: text/plain; charset="iso-8859-1"
> X-Trace: posting.google.com 1103531570 12908 127.0.0.1 (20 Dec 2004
08:32:50 GMT)
> X-Complaints-To: groups-(E-Mail Removed)
> NNTP-Posting-Date: Mon, 20 Dec 2004 08:32:50 +0000 (UTC)
> User-Agent: G2/0.2
> Complaints-To: groups-(E-Mail Removed)
> Injection-Info: c13g2000cwb.googlegroups.com; posting-host=203.217.8.66;
> posting-account=p47-Lg0AAAAhHq7M5IcRlr6CsUsxa6tD
> Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!c13g2000cwb.go
oglegroups.com!not-for-mail
> Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:67223
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> Hello,
> i have a simple Webservice, that gives me some data from a sql database
> as a DataSet. On the pocketpc i modify that dataset and write it back
> to the sqldb (via a webservice). my questions: is there a way to get
> the size of the data thats being send back? are only modified values
> send back to the webservice?
>
> thanks
> florian
>
>