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

difference between xml dataset and sql/access?

I'm nearly done writing the first version of my tracking app and I'm
starting to re-think the way I store my database. Currently I have my
database setup as an xml dataset. Before I started the program I choose
to go with a dataset because I was unclear if the end user would have to
have access installed if I went with an access database.

Recently I'm starting to realize (or think) that this isn't the case.
And, from what I gather, the xml dataset is loaded completely into
memory while an access database would not be loaded completely into
memory (please correct me if I'm wrong).

I'm also not sure which is faster.

If those of you who have experience with both, or either, could
enlighten me I'd really appreciate it. From what I've seen in access c#
code samples, it wouldn't be that difficult to convert my app to use a
different type of database.

If you have different suggestions that aren't just xml or access please
also let me know.

thanks
Benny
Nov 17 '05 #1
5 2085
Access databases are not loaded completely in memory, it sounds like
your XML is. Depending on the size of your database, this could go
either way. small database would favor your xml probably, large would
definitely favor the Access db.

Larger databases lend themselves to RDBMs, such as Jet, which Access
uses as its database engine. Larger databases also lend themselves to
SQL databases.

generally, the larger the dataset, the more you would want to go with an
sql database. the smaller the dataset, the more reliably you could use
a flat-file database, such as XML. Jet (a.k.a. Access) DBs are
generally regarded as a small to mid-tier databases.

hope that helps.

Benny Raymond wrote:
I'm nearly done writing the first version of my tracking app and I'm
starting to re-think the way I store my database. Currently I have my
database setup as an xml dataset. Before I started the program I choose
to go with a dataset because I was unclear if the end user would have to
have access installed if I went with an access database.

Recently I'm starting to realize (or think) that this isn't the case.
And, from what I gather, the xml dataset is loaded completely into
memory while an access database would not be loaded completely into
memory (please correct me if I'm wrong).

I'm also not sure which is faster.

If those of you who have experience with both, or either, could
enlighten me I'd really appreciate it. From what I've seen in access c#
code samples, it wouldn't be that difficult to convert my app to use a
different type of database.

If you have different suggestions that aren't just xml or access please
also let me know.

thanks
Benny

Nov 17 '05 #2
Let's say i'm storing anywhere from 100 to 1000 records (it could go
higher but I don't plan on anyone having more than 1000)

That seems small... should I go with access? is it faster? It would
save some memory i assume...

jeremiah johnson wrote:
Access databases are not loaded completely in memory, it sounds like
your XML is. Depending on the size of your database, this could go
either way. small database would favor your xml probably, large would
definitely favor the Access db.

Larger databases lend themselves to RDBMs, such as Jet, which Access
uses as its database engine. Larger databases also lend themselves to
SQL databases.

generally, the larger the dataset, the more you would want to go with an
sql database. the smaller the dataset, the more reliably you could use
a flat-file database, such as XML. Jet (a.k.a. Access) DBs are
generally regarded as a small to mid-tier databases.

hope that helps.

Benny Raymond wrote:
I'm nearly done writing the first version of my tracking app and I'm
starting to re-think the way I store my database. Currently I have my
database setup as an xml dataset. Before I started the program I
choose to go with a dataset because I was unclear if the end user
would have to have access installed if I went with an access database.

Recently I'm starting to realize (or think) that this isn't the case.
And, from what I gather, the xml dataset is loaded completely into
memory while an access database would not be loaded completely into
memory (please correct me if I'm wrong).

I'm also not sure which is faster.

If those of you who have experience with both, or either, could
enlighten me I'd really appreciate it. From what I've seen in access
c# code samples, it wouldn't be that difficult to convert my app to
use a different type of database.

If you have different suggestions that aren't just xml or access
please also let me know.

thanks
Benny

Nov 17 '05 #3
With 1000 records I'd pretty much flip a coin on it. Any speed
advantage would be negligible, I'd guess. You will use more memory with
XML, but that's probably only about 10 megs or so (what size is your db,
anyway?) and on modern systems that is almost nothing.

jeremiah

Benny Raymond wrote:
Let's say i'm storing anywhere from 100 to 1000 records (it could go
higher but I don't plan on anyone having more than 1000)

That seems small... should I go with access? is it faster? It would
save some memory i assume...

Nov 17 '05 #4
The database is pretty small... Just for fun i added 8420 records and
saved the xml file out. The xml file it generated is 5.61 MB. Of
course this is the minimalist version of each node added, but it should
show about how small these records are.

jeremiah johnson wrote:
With 1000 records I'd pretty much flip a coin on it. Any speed
advantage would be negligible, I'd guess. You will use more memory with
XML, but that's probably only about 10 megs or so (what size is your db,
anyway?) and on modern systems that is almost nothing.

jeremiah

Benny Raymond wrote:
Let's say i'm storing anywhere from 100 to 1000 records (it could go
higher but I don't plan on anyone having more than 1000)

That seems small... should I go with access? is it faster? It would
save some memory i assume...

Nov 17 '05 #5
First things i was trying to understand what has access or dataset to
do with access with installed on the user terminal.
If you have defined your data access layer in a generic fashion you can
connect to any kind of database. I think you have to read some articles
on how to make DAL components.

-------
Regards ,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
My Interview Blog
http://spaces.msn.com/members/dotnetinterviews/

Nov 17 '05 #6

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

Similar topics

1
by: Arjen | last post by:
Hi, What are the main differences between a dataset and a dataview? What should I cache dataset or dataview... or what is the best thing to do in what situation? Thanks! Arjen
2
by: Jason Huang | last post by:
Hi, In the ASP.Net, what's the difference between DataSet and DataView? I what situation will I choose to use the DataSet or DataView? Thanks for help. Jason
0
by: Jeffry van de Vuurst | last post by:
Hi, I have a page with EnableSessionState=readonly in the page directive. A couple of strange things happen. When I try to add something to the session, I get no exception. Immediately after...
2
by: thomson | last post by:
Hi All, What is the difference between a typed dataset and an untyped datset, Where can be this used actually, I mean in which situation which has to be used, In case anyone has got some...
22
by: EMW | last post by:
Hi, I managed to create a SQL server database and a table in it. The table is empty and that brings me to my next chalenge: How can I get the info in the table in the dataset to go in an empty...
13
by: Lars Netzel | last post by:
hi! myDataSet that is fillled from an Access 2000 db and includes ONE table From that Table in myDataSet I create myDataView and use a Rowfilter to get a few rows that i work with (i need a...
14
by: Lars Netzel | last post by:
A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these...
8
by: Hans Greif | last post by:
Hallo, hello, i try to implement a global dataset - singleton based. On www.bakterienforum.de i found a singleton implementation: sealed class SingletonCounter { public int Counter = 0;
0
JordanMartz
by: JordanMartz | last post by:
''' <summary> ''' Populates the DataGridView ''' </summary> Private Sub PopulateDataGridView() ' Set the column header names. userAccessGrid.ColumnCount = 5 ...
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...
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
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
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
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...
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.