Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
san2008
Starting Member
4 Posts |
Posted - 2008-08-21 : 07:32:22
|
I have a database which contains tables with dynamic no. of columns. But since that couldn't be supported in Linq i am now using a 2 table pair, 1 for storing the column names and the other for storing the values under that column as rows. Eg;Table1ColumnID(int) ColumnName(VC)01 Col102 Col2Table2 ValueID(VC) Value(VC)Col1 Value11Col1 Value12Col2 Value21Col2 Value22Col2 Value23This arrangement solves the data storage problem but the issue arises when i have to show the data in a grid like:Col1 Col2Value11 Value21Value12 Value22 Value23I had seen a lot of articles on the same but couldn't find any of them graspable or suitable (even the ones where some pivot is used,since I am new to this).Some guidance on this issue will be greatly appreciated. |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2008-08-21 : 23:32:35
|
Did you look at pivot samples in books online? |
 |
|
|
|
|