473,466 Members | 1,301 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How Best to Store this Data

I have a company form that I need to web-enable. The form has about 50 data
items with some of these data items able to have N sub data items. I'm
considering ways to store this form in my database.

If I were to go for SQL tables, I would end up with several tables, the main
one having many columns. Maintaining the stored procedures and methods
involved in this would be a pain.

What are some other good techniques for storing something like this?

I was considering coming up with an XSD that defines the data stored in this
document, and then store the whole document as Xml. Does this idea have any
glaring disadvantages?

Just looking for some good ways to tackle this.

Thank You
Nov 18 '05 #1
5 1208
George
There are always advantages and disadvantages to everything... if you're going to have a lot of records... you'll have to deal with the pain of keeping up stored procedures and keeping evrything in SQL. If the amount of records are going to be small then I'd go xml (This is what I've been hearing). Searches through xml start to get slower as you create bigger amounts of data. SQL is considerably faster through searches as your data is bigger.
Nov 18 '05 #2
One one hand, the SQL way is familiar, but as you said, it becomes a pain to
maintain the stored procedures and methods, etc.

The Xml alternative would be an interesting and different way to do this (
which is more preferable than sitting down to write a 50 parameter stored
proc ;)

I'll probably have about 1000 records per year. Does that qualify as a lot
of records, or is it still a manageable quantity for doing searches, etc.?

Thank you Bryan

"Bryan" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
George,
There are always advantages and disadvantages to everything... if

you're going to have a lot of records... you'll have to deal with the pain
of keeping up stored procedures and keeping evrything in SQL. If the amount
of records are going to be small then I'd go xml (This is what I've been
hearing). Searches through xml start to get slower as you create bigger
amounts of data. SQL is considerably faster through searches as your data
is bigger.
Nov 18 '05 #3
George..
Take a look at a product called RapTier... it writes your insert, update commands and stored procedure for you. I use it cause I just can't stand writing all the junk code for VB and C# for stored procedures. It keeps a lot of your hair on your head when dealing with changes to the Tables. It's free for coontrolling under 15 tables. Over this amount you'll have to pay. If, like me, you can't deal with kind of stuff... you'll like this product

I'd say a 1000 records are starting to get big for xml... especially with 50 columns. I had a teacher in my XML clss that when XML first came out they through a lot of records into it. They found that when they were doing searches.... they definitely didn't want what XML was giving them... latency times on searches. XML is great for webservices and transfering info between users but keeping records for a db in a stationary environment??? I wouldn't.
Nov 18 '05 #4
You're going to have to maintain something at some point... either sprocs or
your own code.

It sounds like you really do have a relational database (at least
conceptually) - even though you apparently don't want to store it physically
in a database product like SQL Server. If that's true (your data really is
relational), then depending on how you use the data, it might become much
more of a maintentance problem to work with your relational data in XML vs
in a true relational database.

If you are simply not wanting to take the time to do it using a tool
designed to work with relational data (SQL Server, Access, etc), then you'll
have to take the time to roll your own code that will do what the true
database would have made easy (e.g., a SQL statement executed against a
table is much simpler to write and maintain than your own code that loops
through flat data...).

Of course your not telling us much about how you plan to use the data and
the nature of the data limits our ability to offer you much specific
guidance.

Good luck

-G

"George Durzi" <gd****@hotmail.com> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
One one hand, the SQL way is familiar, but as you said, it becomes a pain to maintain the stored procedures and methods, etc.

The Xml alternative would be an interesting and different way to do this (
which is more preferable than sitting down to write a 50 parameter stored
proc ;)

I'll probably have about 1000 records per year. Does that qualify as a lot
of records, or is it still a manageable quantity for doing searches, etc.?

Thank you Bryan

"Bryan" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
George,
There are always advantages and disadvantages to everything... if you're going to have a lot of records... you'll have to deal with the pain
of keeping up stored procedures and keeping evrything in SQL. If the

amount of records are going to be small then I'd go xml (This is what I've been
hearing). Searches through xml start to get slower as you create bigger
amounts of data. SQL is considerably faster through searches as your data
is bigger.

Nov 18 '05 #5
You both are right. I think the best way is to suck it up and do it in the
good old SQL way. Bryan, thanks for the product suggestion for creating all
that junk code... that will definitely help.

"Grant" <GM**@spamthis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You're going to have to maintain something at some point... either sprocs or your own code.

It sounds like you really do have a relational database (at least
conceptually) - even though you apparently don't want to store it physically in a database product like SQL Server. If that's true (your data really is
relational), then depending on how you use the data, it might become much
more of a maintentance problem to work with your relational data in XML vs
in a true relational database.

If you are simply not wanting to take the time to do it using a tool
designed to work with relational data (SQL Server, Access, etc), then you'll have to take the time to roll your own code that will do what the true
database would have made easy (e.g., a SQL statement executed against a
table is much simpler to write and maintain than your own code that loops
through flat data...).

Of course your not telling us much about how you plan to use the data and
the nature of the data limits our ability to offer you much specific
guidance.

Good luck

-G

"George Durzi" <gd****@hotmail.com> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
One one hand, the SQL way is familiar, but as you said, it becomes a pain
to
maintain the stored procedures and methods, etc.

The Xml alternative would be an interesting and different way to do this

( which is more preferable than sitting down to write a 50 parameter stored proc ;)

I'll probably have about 1000 records per year. Does that qualify as a lot of records, or is it still a manageable quantity for doing searches, etc.?
Thank you Bryan

"Bryan" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
George,
There are always advantages and disadvantages to everything... if

you're going to have a lot of records... you'll have to deal with the pain of keeping up stored procedures and keeping evrything in SQL. If the

amount
of records are going to be small then I'd go xml (This is what I've been
hearing). Searches through xml start to get slower as you create bigger
amounts of data. SQL is considerably faster through searches as your data is bigger.


Nov 18 '05 #6

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

Similar topics

10
by: Bob Bedford | last post by:
Sorry if I post here, but I don't have access to any valuable mysql ng for this question, ans since 99% or php programmers deal with mysql, I'm sure I'll get an answer here. Look at the...
12
by: jacob nikom | last post by:
Hi, I would like to store XML files in MySQL. What is the best solution: 1. Convert it to string and store it as CLOB/text 2. Serialize it and store as byte array 3. Flatten it out and create...
1
by: nzanella | last post by:
Hello, I am currently upgrading a database of products to include pictures to be displayed online. I would like to know whether it would be best to store the pictures themselves in a database as...
1
by: Prince | last post by:
I'm doing the following but I'm not sure if there is a more efficient way to accomplish the same thing. In my Page_Load() method, I accessed a database and stored the information inside a...
17
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to...
0
by: Louis Aslett | last post by:
I hope this is the correct newsgroup for this query (if not please give me a pointer to where is best): I understand the theory of normalisation etc and am trying to follow best practices in the...
32
by: David Isaac | last post by:
I have no experience with database applications. This database will likely hold only a few hundred items, including both textfiles and binary files. I would like a pure Python solution to the...
3
by: gordon | last post by:
Hi I am looking to store some details about a user's configuration choices, in particular the place where they have installed some data files, the OS that they use, and their Windows user name. ...
4
by: ink | last post by:
Hi all, I am trying to pull some financial data off of an HTML web page so that I can store it in a Database for Sorting and filtering. I have been thinking about this for some time and trying...
0
by: M.-A. Lemburg | last post by:
On 2008-05-01 13:37, Lance Gamet wrote: I don't think this is a Python question, but more a platform question. Users on different platforms will expect configuration data in different places....
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
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...
1
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.