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

store array

Dear all

If I have array of 500 numbers and I want to store it in sql table database such that each row has its own 500 values by using c#

any ideas to do that

thanks
Feb 10 '09 #1
5 1977
semomaniz
210 Expert 100+
are you trying to each data row will have 500 numbers of its own?
Feb 10 '09 #2
yea..I am trying to do so...however I am searching to a method to store them in one cell
Feb 10 '09 #3
semomaniz
210 Expert 100+
how is your data table designed? One quick solution is to separate the numbers with delimiters and then inserting this to the database.
Feb 10 '09 #4
the structure is so simple..."X" at first Colume and "Y" at sec. colume and at third colume is receiving signal strength at that position X.Y but one the project requirments to store 500 values of the signal strength at each position..and based on that it is not good solution to store 500 each in a separete cell..because that mean I will extend the table to 504 columes

so I am searching to a way to store in one cell
Feb 10 '09 #5
vekipeki
229 Expert 100+
Large number of columns usually indicates a wrong database design.
For example, if I understood correctly, you have a table like this:

Expand|Select|Wrap|Line Numbers
  1. [  X  ][  Y  ][  Value  ]
  2.    0      0       15.1
  3.    0      1       10.4
  4.    0      2       12.6
  5. etc.
which contains all 2D values at a given moment in time. If you now add a DATETIME column, you can keep all your data in rows, and you don't need to care how many different Time values you will have.

Expand|Select|Wrap|Line Numbers
  1. [  Time  ][  X  ][  Y  ][  Value  ]
  2.    10:00     0      0       15.1
  3.    10:00     0      1       10.4
  4.    10:00     0      2       12.6
  5. (...)
  6.    10:01     0      0       15.1
  7.    10:01     0      1       10.4
  8.    10:01     0      2       12.6
  9. etc.
This is just a simple example of one way to turn your columns into rows. If you want to learn more about designing databases, Google for "database normalization".
Feb 11 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Colin Steadman | last post by:
Hope this makes sense! I'm building an ASP page which allows uses to add items to an invoice via a form, ie: Item No Part No Order No Quanity Units Price VAT ------- ...
2
by: forums_mp | last post by:
I've got an STL class (see below) with two functions to store and retrieve data - msg structs. The "Store" function when called will copy the received message (depending on which message) into...
3
by: jacob nikom | last post by:
Hi, I would like to be able to store numerical array in MySQL. I am really looking for the solution to store it in the one field only. For example, I have a matrix, which I want to store in...
3
by: Tony Johansson | last post by:
Hello! Assume you want to store field object that a chess board consist of. A chess board consist of 64 fields where each field is either white or black. Now to my question how should I...
4
by: Robert P. | last post by:
I can easily store a one-dimensional array in viewstate ( see Test1 ) If I try storing a multi-dimensional array in the viewstate it's crapping out on me when it goes to serialize the array (not...
2
by: Alan Silver | last post by:
Hello, I am designing a form that allows people to request the formation of a limited company. When they fill in the form, they have to supply a certain amount of information relevant to their...
2
by: hikmaz | last post by:
I am trying to get the rightmost digits (%10) of a number (taken from the user) and store it into successive array locations and get rid of the rightmost digit (\10) to store the next and so on and...
9
by: Ajinkya | last post by:
Hello friends ! , I am very new to java script.If anyone can help me then I will be very very thankful to his/her. I am using php and mysql in my project and I have one textarea and one...
4
by: alnoir | last post by:
I'm writing a script that take web pages and stores the content into an array. Before, I was looping through a text file and stored each line into an array. With a file I could read it by line and...
3
by: almo | last post by:
hi guys, I have question about writing a function that will store some data from a file in an array, then when that function is call in main, I can use that array in the main() for calculation. Here...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.