Solved

Storing without a database

Posted on 2007-11-19
8
153 Views
Last Modified: 2010-04-23
I want to store data without using a database backend.  I might want to port the application to a handheld at sometime in the future so I need to store the data on the desktop in a way that would be compatable.  I have only done programming using the jet engine in the past and have no idea where to start.  Thanks
0
Comment
Question by:Moed
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 20315508
The best  option is to have it in XML files.

Satheesh
0
 
LVL 15

Assisted Solution

by:Solar_Flare
Solar_Flare earned 50 total points
ID: 20315513
if the data is quite simple then you can save a dataset to XML and load it back again really easily.

just call the datasets ReadXML and writeXML methods passing in a filename, this wil lsimply persist the dataset to the XML file and read it back again.
0
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 200 total points
ID: 20315516
http://www.w3schools.com/xml/xml_savedata.asp
 a good example of storing data in XML
0
 
LVL 2

Author Comment

by:Moed
ID: 20315556
Well, it seems like xml is the solution of choice.  In a database program I am used to multiple tables linked with common information.  Does it work the same way in xml.  How do you add, edit, delete? Are sql statements used to retrieve the selected information?  Is there a good reference book?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 18

Expert Comment

by:jcoehoorn
ID: 20315680
Look at Microsoft SQL Server Compact Edition.  It's upward compatible with full sql server and it was designed originally for use on PocketPC.  You may not *need* a database yet, but as your application grows you'll be happy you designed with a relational data model in mind from the beginning.
0
 
LVL 2

Author Comment

by:Moed
ID: 20315735
jcoehoorn
Is Microsoft sql server compact edition similar to access in usage.  I would rather continue using what I'm used to if possible?
0
 
LVL 15

Expert Comment

by:spprivate
ID: 20315921
in XML you can use XPath and XQuery to mess around with the data.
As far as Compact edition it is pretty much like SQL except for that it is a lighter one.
http://www.microsoft.com/sql/editions/compact/default.mspx
0
 
LVL 18

Accepted Solution

by:
jcoehoorn earned 250 total points
ID: 20315982
Yes, it's similar in usage.  The difference it that it uses SQL Server syntax rather than access syntax, but there aren't that many differences.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now