Re: Should I use XML as a database for a standalone app?
- From: "Jim Florence" <florence_james@xxxxxxxxxxx>
- Date: Thu, 13 Apr 2006 19:19:34 +0100
Cor, Vijay, Cerebrus,
Thanks very much for your extremely helpful replies. The idea at least is
sound now I just need to work out how to do it. :0)
There seems to be a real lack of example code for winforms(non asp) xml for
vb.net, does anyone know of any good places where I can get some grounding
on this ?
Many thanks again
Jim
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:%236npvYrXGHA.5012@xxxxxxxxxxxxxxxxxxxxxxx
Jim,
Your question is exactly were AdoNet and datasets are made for.
There are more and more disconnected data in the world, think for that on
PDA, webservices, and more stuff.
Every Dataset, even in a PC connected in a network, works disconnected.
Therefore you can save it at any point to any media. For the last you need
to write it with the extra parameter "DiffGram" as long as you don't save
it, by instance on a PDA, you have the same effect of course.
Be aware that the writeXML does not check if the file already exist and if
that stops while writing (power failure) you will lost everything if you
don't make a procedure to prevent that. Therefore I advice you to create
at least a mechanisme as FileCurrent and FilePrevious.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdataxmlwritemodeclasstopic.asp
I hope this helps,
Cor
"Jim Florence" <florence_james@xxxxxxxxxxx> schreef in bericht
news:xMCdnWchLp18E6DZRVnyiA@xxxxxxxxxxxx
Hi,
I've just started work on a project where I need to have a tool to allow
people to work offline and then sync data back to a main database when
they come back onshore.
It's a basic app that would allow people to enter timesheet data, record
maintenance on offshore kit and raise requisitions.
I had the idea of exporting the necessary data from the main database as
XML files, using these as a mini database and the writing a procedure to
take the data back in the files at the end of a job.
I've had a quick look at this and have bits working but before I go too
far down the path I was hoping for a sanity check. And any pointers as
how to handle the XML data best in windows forms/grids
Many Thanks
Jim Florence
.
- Follow-Ups:
- Re: Should I use XML as a database for a standalone app?
- From: Cor Ligthert [MVP]
- Re: Should I use XML as a database for a standalone app?
- References:
- Should I use XML as a database for a standalone app?
- From: Jim Florence
- Re: Should I use XML as a database for a standalone app?
- From: Cor Ligthert [MVP]
- Should I use XML as a database for a standalone app?
- Prev by Date: Re: .NET 1.1 app runs on .NET 2.0?
- Next by Date: Re: How do I determine if a control has a specific property
- Previous by thread: Re: Should I use XML as a database for a standalone app?
- Next by thread: Re: Should I use XML as a database for a standalone app?
- Index(es):
Relevant Pages
|