Welcome to Dream.In.Code
Become an Expert!

Join 149,478 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,627 people online right now. Registration is fast and FREE... Join Now!




Dynamically update orders - daily

 
Reply to this topicStart new topic

Dynamically update orders - daily, How would you do it?

tody4me
19 Apr, 2007 - 07:31 AM
Post #1

Only Jenny Craig makes thin clients...
Group Icon

Joined: 12 Apr, 2006
Posts: 1,349



Thanked: 5 times
Dream Kudos: 100
My Contributions
I am trying to figure out the best way to read data and upload changes in C#. I currently read in the data and update each and every field on each and every line whether or not there are any changes. Of course, this takes forever. I am wanting to know if anyone here has used the DataTable object enough to tell me whether or not it is reliable enough to do updates. What I mean by that is this... can you design a dataset that mocks the database, takes it offline, and does comparisions of certain fields and then tells you the set of rows that need to be updated in what table. I'm looking for something that will allow me to take the data from the database and compare it to the data that i get from a data dump.

Data Layout:
CODE

Database
[Headers] (17 fields)
orderdate
shipped - to be moved - details
shipdate - to be moved - details
cancelled
...
[Details] (8 fields)
itemid
custprice
pricebookprice
shipped
cancelled / removed
invoiced
...


CODE

data dump (30 fields - 5 ignored)
orderid
purcordid
itemid
shipped (header only, details doesn't exist)
shipdate
cancelled
...


if more info would be useful in determining the best way to do this, please let me know what would help. I think that i'm on the right track with using dataset / datatable but i wanted to make sure before i make a large investment in using it.

Thanks
User is offlineProfile CardPM
+Quote Post

gregoryH
RE: Dynamically Update Orders - Daily
30 Apr, 2007 - 04:20 AM
Post #2

D.I.C Regular
Group Icon

Joined: 4 Oct, 2006
Posts: 417


Dream Kudos: 50
My Contributions
QUOTE(tody4me @ 19 Apr, 2007 - 08:31 AM) *

I am trying to figure out the best way to read data and upload changes in C#. I currently read in the data and update each and every field on each and every line whether or not there are any changes. Of course, this takes forever. I am wanting to know if anyone here has used the DataTable object enough to tell me whether or not it is reliable enough to do updates. What I mean by that is this... can you design a dataset that mocks the database, takes it offline, and does comparisions of certain fields and then tells you the set of rows that need to be updated in what table. I'm looking for something that will allow me to take the data from the database and compare it to the data that i get from a data dump.

if more info would be useful in determining the best way to do this, please let me know what would help. I think that i'm on the right track with using dataset / datatable but i wanted to make sure before i make a large investment in using it.

Thanks

Hi

There is something about the process that seems to be the hard way to do this job.

A good quality RDBMS would manage this without ever needing to be taken off line. If you really need to have a comaprison between offline and online, the best technique is like this:

SQL
update table on existing skip
where field=value

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 03:38PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month