473,406 Members | 2,451 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,406 software developers and data experts.

Should I use XML as a database for a standalone app?

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

Apr 13 '06 #1
5 1073
Really depends on the volume of Data, if it is small scale, then you are
fine. You don't have much options to load XML files faster.. so beware of
the size before deciding on XML for local files..

Vijay

"Jim Florence" <fl************@hotmail.com> wrote in message
news:xM********************@pipex.net...
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

Apr 13 '06 #2
General considerations :

1. Requirement : High interoperability.
Best option - XML

2. Requirement : High speed, performance.
Best option - Databases.

3. Requirement : Large size updates, database.
Best option - Databases.

4. Requirement : Small updates, network based.
Best option - XML

In your case, I think XML based updates to a main SQL Server database
seem like the best bet.

Regards,

Cerebrus.

Apr 13 '06 #3
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/de...classtopic.asp

I hope this helps,

Cor
"Jim Florence" <fl************@hotmail.com> schreef in bericht
news:xM********************@pipex.net...
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

Apr 13 '06 #4
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]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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/de...classtopic.asp

I hope this helps,

Cor
"Jim Florence" <fl************@hotmail.com> schreef in bericht
news:xM********************@pipex.net...
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


Apr 13 '06 #5
Jim,

I use Datasets in the most of the samples where connection to a database is
not needed.

If you scroll in the combobox than the pages are showed quick via Ajax.

Most our samples are complete independend, with Access NorthWind or With SQL
Northwind testable as very small applications.

http://www.vb-tips.com/default.aspx?...6-38b5a2f7fdf0

I hope this helps,

Cor
..
"Jim Florence" <fl************@hotmail.com> schreef in bericht
news:wr******************************@pipex.net...
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]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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/de...classtopic.asp

I hope this helps,

Cor
"Jim Florence" <fl************@hotmail.com> schreef in bericht
news:xM********************@pipex.net...
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



Apr 14 '06 #6

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

Similar topics

2
by: Lonnie, SRC employee | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** I can figure out how to set the standalone attribute in the <? xml version="1.0 ?> tag eg <?xml version="1.0" standalone="yes" ?> ...
8
by: Gustavo Campanelli | last post by:
What are our options for a standalone (that is one that's not client/server) easily accesible from Python? I'm not going to ask for special features as this is only to see what is avaiable and...
14
by: Sam | last post by:
Hi, I have been developing sites and cms's for the past few years using PHP and mysql. I've been interested in learning a new language and was considering Python. I have a pretty decent grasp of...
4
by: free2cric | last post by:
Hi, Just posting a sample progam. class asd's member function calls function b which is not a member function and passes it a class's variable as parameter . Should the called function be a...
2
by: z | last post by:
I'm developing a couple of applications that I need some advice on which database structure to use. My first thought is SQL Server of course, but after looking at my potential users and their...
14
by: David Suela Fernández | last post by:
Hi! Is it possible to copy/migrate one database from one postgres server to other copying just the files in /var/lib/postgres/data/ ? I can't use pg_dump because it give me an error. I think...
1
by: VK | last post by:
It is possibly more suitable to address this question to W3C mailing list, but I'm trying here first. Could anyone comment on <http://www.w3.org/TR/REC-xml/#sec-rmd> The first statement says:...
7
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it...
1
by: vinot85 | last post by:
I am going to deploy an standalone project in a standalone system. I have created this project with Visual Studio2005 and SQL Server 2000. I dont know how to install it with their corresponding...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.