c# - Storing dynamic number of data values on same row in SQL database table -


I need to store test results from one device in a test in the SQL database. What data for each test There may be an example of the need to store:

id, load units, height units, load, height

Can:

id, load units, height units, load 1, height 1, load 2, high 2, load 3, height 3 ...

The solution that I thought was possible to store how many possible loads and height values ​​in the table, it set an arbitrary limit Have to do. It also means that many load / height columns may be zero depending on the test result. However, it seems like a dirty solution.

Will it be more appropriate to store many load / height values ​​formatted in XML? Or is there any other possible solution?

EDIT: Using load / height values ​​I will not need to be able to search for data, other fields such as "test name" and "timestamp" are used to search for data. Will be done for.

You may have a table with test ID, load units and height units, load results ( For example, for another altitude result (testID and height) for the second, with TestID and LoadResult). No taps are necessary.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -