473,804 Members | 3,478 Online
Bytes | Software Development & Data Engineering Community
+ 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 1232
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*******@disc ussions.microso ft.com> wrote in message
news:7F******** *************** ***********@mic rosoft.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******** *****@tk2msftng p13.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*******@disc ussions.microso ft.com> wrote in message
news:7F******** *************** ***********@mic rosoft.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******** ********@tk2msf tngp13.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******** *****@tk2msftng p13.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*******@disc ussions.microso ft.com> wrote in message
news:7F******** *************** ***********@mic rosoft.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
1859
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 folloming table: CREATE TABLE searchlog ( IDSearchLog MEDIUMINT UNSIGNED NOT NULL auto_increment, F1 MEDIUMINT UNSIGNED default NULL, F2 VARCHAR(40) default NULL, F3a SMALLINT UNSIGNED default NULL,
12
7726
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 one column per element, each column is VARCHAR Does MySQL has anything special for XML data? Is there any software which helps to store XML data in MySQL
1
2373
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 a BLOB or whether it would be best to simply store the filename. What are the pros and cons? Thank you,
1
1065
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 DataSet. On my webpage, I have a DataList server control that binds to the DataSet. The method looks something like the following: Page_Load(){ //do the database connection plus binding
17
8045
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 read or modify this string so I don't want to store it in an INI / Text file or in registery. Can someone please tell me the best practice for this. Thanks Mike
0
1721
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 design of the database for a new project, but I am unsure as to the best practice when one wants to store data relating to combinations of arbitrary numbers of sets of data. For example, take the following two groups of sets, each containing...
32
5666
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 extent reasonable. Suggestions? Thank you, Alan Isaac
3
2143
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. This information is used in a windows C#.net application. I would like to capture this info the first time that the user opens the app, but each subsequent time to make sure that the location is current when they open the application. This is...
4
2767
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 to find the best way to do it but I am just not experienced enough with this sort of thing to make the best decision, so any advice would be great. The data is on a number of different nested tables with in the HTML, and on a number of different...
0
2362
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. It's usually best to stick to the platform conventions. Python has modules available for accessing INI-files, XML-files and also for the Windows registry, so that part is easy.
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10593
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.