473,396 Members | 1,766 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.

Opinion Needed: Storing Small Amount of Records

Hi Everyone,

I need an opinion here on storing data for a program I am working on the
processes DICOM images. Essentially, my program stores 25-45 (it varies
depending on the user) ranges of pixel values to search the image for.

Currently, I am using a .MDF database that requires SQL Express to be
installed. For only 25-45 records it seems like overkill to me. That
being said, I love the ability to easily update records, delete, add, etc.

Does anyone have any thoughts on whether I should explore other methods
for storing this data? If so, what is it? The key is to be able to
easily allow for modifications and additions.

Thank you,

Lint Radley
Oct 20 '07 #1
6 1283
I need an opinion here on storing data for a program I am working on the
processes DICOM images. Essentially, my program stores 25-45 (it varies
depending on the user) ranges of pixel values to search the image for.

Currently, I am using a .MDF database that requires SQL Express to be
installed. For only 25-45 records it seems like overkill to me. That being
said, I love the ability to easily update records, delete, add, etc.

Does anyone have any thoughts on whether I should explore other methods
for storing this data? If so, what is it? The key is to be able to easily
allow for modifications and additions.
What about XML? You can store your data in a strongly-typed dataset and
read/write via "DataSet.ReadXml()" and "DataSet.WriteXml()". You therefore
have the benefit of the native ADO.NET classes which provides adequate
RDBMS-like functionality with no external DB req'd. Keep in mind that you
lose the benefits of a full-blown RDBMS but for a small app it works very
well IMHO.
Oct 20 '07 #2
Hi Larry,

I will look into this. I had thought about XML but didn't go too far
into checking the solution for suitability. Sounds like from your
description you can still bind to it?

Thanks,

Lint Radley

Larry Smith wrote:
>I need an opinion here on storing data for a program I am working on the
processes DICOM images. Essentially, my program stores 25-45 (it varies
depending on the user) ranges of pixel values to search the image for.

Currently, I am using a .MDF database that requires SQL Express to be
installed. For only 25-45 records it seems like overkill to me. That being
said, I love the ability to easily update records, delete, add, etc.

Does anyone have any thoughts on whether I should explore other methods
for storing this data? If so, what is it? The key is to be able to easily
allow for modifications and additions.

What about XML? You can store your data in a strongly-typed dataset and
read/write via "DataSet.ReadXml()" and "DataSet.WriteXml()". You therefore
have the benefit of the native ADO.NET classes which provides adequate
RDBMS-like functionality with no external DB req'd. Keep in mind that you
lose the benefits of a full-blown RDBMS but for a small app it works very
well IMHO.

Oct 20 '07 #3

"Lint Radley" <sc********@forwardbounding.comwrote in message
news:WwtSi.907$uE4.459@trnddc07...
Hi Larry,

I will look into this. I had thought about XML but didn't go too far into
checking the solution for suitability. Sounds like from your description
you can still bind to it?
UI controls can be bound to an ADO.NET DataTable. The DataTable natively
understands XML, and can read and write to/from XML files directly:

http://msdn2.microsoft.com/en-us/lib...e.readxml.aspx

http://msdn2.microsoft.com/en-us/lib....writexml.aspx

If you are unfamiliar with ADO.NET, consider that a standard approach to
working with data is to query a database and load data into a DataSet or
DataTable via an ADO.NET DataAdapter instance. Note that a DataSet is
basically a container for DataTable objects. Data lives only in DataTables -
and never directly in a DataSet. To over simplify, you can pretty much think
of a DataSet as an in-memory relational database, as you can set up
DataRelations amongst contained DataTables. Anyway, you then bind your UI
components to the DataSet (specifying the particular DataTable) or a
DataView, or bind directly to a DataTable (DataTables are not required to
exist within a DataSet). The user can then update the data in the
DataTable(s) (perhaps via contained in a DataSet). You then persist the
changes back to the database with an ADO.NET DataAdapter instance.

Keep in mind that (1) DataTables have no clue as to where their data came
from. And (2) because DataTables natively store their data as in-memory XML,
they are capable of reading and writing directly to XML files on disk (no
need to get data from a typical database like MS Access or SQL Server). The
two links above have overloads you can use to read and write directly
to/from XML files on disk.

-HTH
Oct 20 '07 #4
Hi Mac,

I really appreciate your write up here. I will be reading up on this
tomorrow. Thanks! :-)

Lint Radley
Mac McMicMac wrote:
"Lint Radley" <sc********@forwardbounding.comwrote in message
news:WwtSi.907$uE4.459@trnddc07...
>Hi Larry,

I will look into this. I had thought about XML but didn't go too far into
checking the solution for suitability. Sounds like from your description
you can still bind to it?

UI controls can be bound to an ADO.NET DataTable. The DataTable natively
understands XML, and can read and write to/from XML files directly:

http://msdn2.microsoft.com/en-us/lib...e.readxml.aspx

http://msdn2.microsoft.com/en-us/lib....writexml.aspx

If you are unfamiliar with ADO.NET, consider that a standard approach to
working with data is to query a database and load data into a DataSet or
DataTable via an ADO.NET DataAdapter instance. Note that a DataSet is
basically a container for DataTable objects. Data lives only in DataTables -
and never directly in a DataSet. To over simplify, you can pretty much think
of a DataSet as an in-memory relational database, as you can set up
DataRelations amongst contained DataTables. Anyway, you then bind your UI
components to the DataSet (specifying the particular DataTable) or a
DataView, or bind directly to a DataTable (DataTables are not required to
exist within a DataSet). The user can then update the data in the
DataTable(s) (perhaps via contained in a DataSet). You then persist the
changes back to the database with an ADO.NET DataAdapter instance.

Keep in mind that (1) DataTables have no clue as to where their data came
from. And (2) because DataTables natively store their data as in-memory XML,
they are capable of reading and writing directly to XML files on disk (no
need to get data from a typical database like MS Access or SQL Server). The
two links above have overloads you can use to read and write directly
to/from XML files on disk.

-HTH

Oct 21 '07 #5
This is what I do.

I create a directory like

DataStores\

and put things like

dicom.xml
and i do this

create a strong dataset

add a few rows using code and using the strong typed methods

ds.WriteXml(fileName);

look at it in notepad. save it in dicom.xml

then use the ds.ReadXml when I need it.

(as a previous person has said)

Its for my very very static data. But still updateable if need be.


"Larry Smith" <no_spam@_nospam.comwrote in message
news:uI**************@TK2MSFTNGP02.phx.gbl...
>I need an opinion here on storing data for a program I am working on the
processes DICOM images. Essentially, my program stores 25-45 (it varies
depending on the user) ranges of pixel values to search the image for.

Currently, I am using a .MDF database that requires SQL Express to be
installed. For only 25-45 records it seems like overkill to me. That
being said, I love the ability to easily update records, delete, add,
etc.

Does anyone have any thoughts on whether I should explore other methods
for storing this data? If so, what is it? The key is to be able to easily
allow for modifications and additions.

What about XML? You can store your data in a strongly-typed dataset and
read/write via "DataSet.ReadXml()" and "DataSet.WriteXml()". You therefore
have the benefit of the native ADO.NET classes which provides adequate
RDBMS-like functionality with no external DB req'd. Keep in mind that you
lose the benefits of a full-blown RDBMS but for a small app it works very
well IMHO.

Oct 21 '07 #6
On Sat, 20 Oct 2007 18:00:07 GMT, Lint Radley
<sc********@forwardbounding.comwrote:
>Hi Everyone,

I need an opinion here on storing data for a program I am working on the
processes DICOM images. Essentially, my program stores 25-45 (it varies
depending on the user) ranges of pixel values to search the image for.

Currently, I am using a .MDF database that requires SQL Express to be
installed. For only 25-45 records it seems like overkill to me. That
being said, I love the ability to easily update records, delete, add, etc.

Does anyone have any thoughts on whether I should explore other methods
for storing this data? If so, what is it? The key is to be able to
easily allow for modifications and additions.

Thank you,

Lint Radley
You can also use a small footprint database, which are basically DLLs
that you reference for the database functionality rather than full hog
databases.

There are several of these:

- SQL Lite
- SQL Server Compact Edition
- VistaDB

*Vista DB is not free

--
http://bytes.thinkersroom.com
Oct 22 '07 #7

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

Similar topics

2
by: Keith Morris | last post by:
Hi all! I'm creating a mini CMS that will store content in a MySQL database. What I am trying to do is parse the content and replace certain keywords with a link. The keywords and associated...
0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
4
by: jeff brubaker | last post by:
Hello, Currently we have a database, and it is our desire for it to be able to store millions of records. The data in the table can be divided up by client, and it stores nothing but about 7...
4
by: JollyK | last post by:
Hello everyone... I have created a user-control that has a fairly complex datagrid (with template columns) which includes localization, custom paging, sorting, filtering, searching, caching,...
8
by: penguin732901 | last post by:
A database keeps track of invoices (date, amount, balance, category, etc) and advertisements (size, text, sponsored by, date entered etc) (among other things). Sometimes, an advertisement is...
7
by: Matik | last post by:
Hi to everyone, My problem is, that I'm not so quite sure, which way should I go. The user is inputing by second part application a long string (let's say 128 characters), which are separated...
6
by: arunbalait | last post by:
Hi all. I want to store about 300 crore records into sql server. Is it possible? Whats the actual memory capacity of sql server for storing records..? How many max amount of records can...
1
by: webcm123 | last post by:
I'm looking for a good method of securing ratings. Cookies lock isn't sufficient. In addition to cookies I would need something else. I'm introducing some ways. -= Storing rates inside seperate...
4
by: sumedh..... | last post by:
In a compiler there are 36bits for a word and to store a character 8bits are needed. In this to store a character two words appended. Then for storing k characters string,how many words are needed?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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.