473,396 Members | 1,785 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,396 software developers and data experts.

XML or SQL Server?

Hi. I'm writing a Windows Forms VB.Net app that is a recipe keeper. I am
starting to use SQL Server to hold the data, but I'm wondering if a database
is overkill. I might store a few thousand recipes maximum, so I'm wondering
if I should use XML instead.

My question is: is XML acceptible for this type of storage? The actions
performed include reading recipes, editing recipes and adding to them.
Deleting them, searching within them, etc.

There are 2 tables only, a Recipe table and Category table.

The fields used in the Recipe table are recipe name (varchar 100), recipe
description (text), date created, date modified, etc. The category table
includes categories used (Italian, etc).

It's a very simple database.

If I use XML, am I correct that I would have to load everything into
memory...into a dataset and then traverse through that?

If so, since I might have thousands of recipes, I might use a couple of
megabytes maximum of RAM, I would imagine. Is XML only memory-based? Is
there a way to grab only the bits of data I need as I need them?

The most important component of the product is the GUI. The fact that I need
a data storage mechanism is secondary. The front end, ease of use, is most
important, so I'm trying to figure out what is best for it. Is it acceptable
to load a couple of megs of data into memory for my application? Perhaps
that is not so much of an issue in 2006, where 512MB of ram is the new
minimum standard?

Any suggestions or advice would be great.
Jul 1 '06 #1
3 901
mrMagoo,

At this moment there is in my opinion aspecially with new application no
better alternative for SQLExpress. You have well described the problems with
XML, extra to that is that they can easily unwanted be deleted or wrong
versions overwritten, while with a write error you loose everything if you
don't protect that.

http://msdn.microsoft.com/vstudio/express/sql/download/

http://msdn2.microsoft.com/en-us/library/ms365247.aspx

I hope this helps,

Cor

"mrmagoo" <-schreef in bericht
news:eY**************@TK2MSFTNGP02.phx.gbl...
Hi. I'm writing a Windows Forms VB.Net app that is a recipe keeper. I am
starting to use SQL Server to hold the data, but I'm wondering if a
database
is overkill. I might store a few thousand recipes maximum, so I'm
wondering
if I should use XML instead.

My question is: is XML acceptible for this type of storage? The actions
performed include reading recipes, editing recipes and adding to them.
Deleting them, searching within them, etc.

There are 2 tables only, a Recipe table and Category table.

The fields used in the Recipe table are recipe name (varchar 100), recipe
description (text), date created, date modified, etc. The category table
includes categories used (Italian, etc).

It's a very simple database.

If I use XML, am I correct that I would have to load everything into
memory...into a dataset and then traverse through that?

If so, since I might have thousands of recipes, I might use a couple of
megabytes maximum of RAM, I would imagine. Is XML only memory-based? Is
there a way to grab only the bits of data I need as I need them?

The most important component of the product is the GUI. The fact that I
need
a data storage mechanism is secondary. The front end, ease of use, is most
important, so I'm trying to figure out what is best for it. Is it
acceptable
to load a couple of megs of data into memory for my application? Perhaps
that is not so much of an issue in 2006, where 512MB of ram is the new
minimum standard?

Any suggestions or advice would be great.


Jul 2 '06 #2
A suggestion of sorts...design structure I guess...

Include at least to more tables ...
- Directions ... How to Cook the item.
- Ingredients...What is needed to cook the item...
So, this would give you three core tables...

Recipe Header
Recipe Directions
Recipe Ingredients...

This design would make your 'Header' table light wait - you would only
include 'lookup' and 'identification' information ... and allow users to
include as much detailed as they like without impacting search / lookup /
load performance.

I would recommend using a database of some sort ... it will be easier in the
end to maintain and upgrade. What happens when you change or add new
features to you applicaiton that require 'additional' fields in existing
tables or additional tables ... you will need to write an update procedure
that will update all the current xml documents to ensure they will load in
to the GUI ... however, with a database ... simple.

Also, have you considered using a MSAccess datafile for this ... XML files
are great for temporary storage but should not be used to 'replace' the
functionality of a database... As you build a relational data model ... you
need to be able to leverage the efficiencies and functional of a database
....even for simple 'two table' applications (because a two table application
can easily grow to 3, 4, 5, 10 tables ... and the technology you choose now
will impact your ability to scale the application later...).
"mrmagoo" <-wrote in message news:eY**************@TK2MSFTNGP02.phx.gbl...
Hi. I'm writing a Windows Forms VB.Net app that is a recipe keeper. I am
starting to use SQL Server to hold the data, but I'm wondering if a
database
is overkill. I might store a few thousand recipes maximum, so I'm
wondering
if I should use XML instead.

My question is: is XML acceptible for this type of storage? The actions
performed include reading recipes, editing recipes and adding to them.
Deleting them, searching within them, etc.

There are 2 tables only, a Recipe table and Category table.

The fields used in the Recipe table are recipe name (varchar 100), recipe
description (text), date created, date modified, etc. The category table
includes categories used (Italian, etc).

It's a very simple database.

If I use XML, am I correct that I would have to load everything into
memory...into a dataset and then traverse through that?

If so, since I might have thousands of recipes, I might use a couple of
megabytes maximum of RAM, I would imagine. Is XML only memory-based? Is
there a way to grab only the bits of data I need as I need them?

The most important component of the product is the GUI. The fact that I
need
a data storage mechanism is secondary. The front end, ease of use, is most
important, so I'm trying to figure out what is best for it. Is it
acceptable
to load a couple of megs of data into memory for my application? Perhaps
that is not so much of an issue in 2006, where 512MB of ram is the new
minimum standard?

Any suggestions or advice would be great.


Jul 2 '06 #3
thanks for the input guys.

"mrmagoo" <-wrote in message news:eY**************@TK2MSFTNGP02.phx.gbl...
Hi. I'm writing a Windows Forms VB.Net app that is a recipe keeper. I am
starting to use SQL Server to hold the data, but I'm wondering if a
database
is overkill. I might store a few thousand recipes maximum, so I'm
wondering
if I should use XML instead.

My question is: is XML acceptible for this type of storage? The actions
performed include reading recipes, editing recipes and adding to them.
Deleting them, searching within them, etc.

There are 2 tables only, a Recipe table and Category table.

The fields used in the Recipe table are recipe name (varchar 100), recipe
description (text), date created, date modified, etc. The category table
includes categories used (Italian, etc).

It's a very simple database.

If I use XML, am I correct that I would have to load everything into
memory...into a dataset and then traverse through that?

If so, since I might have thousands of recipes, I might use a couple of
megabytes maximum of RAM, I would imagine. Is XML only memory-based? Is
there a way to grab only the bits of data I need as I need them?

The most important component of the product is the GUI. The fact that I
need
a data storage mechanism is secondary. The front end, ease of use, is most
important, so I'm trying to figure out what is best for it. Is it
acceptable
to load a couple of megs of data into memory for my application? Perhaps
that is not so much of an issue in 2006, where 512MB of ram is the new
minimum standard?

Any suggestions or advice would be great.


Jul 3 '06 #4

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

Similar topics

2
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.