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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Vertical Model

Author  Topic 

flamblaster
Constraint Violating Yak Guru

384 Posts

Posted - 2013-08-29 : 19:27:51
I came across a product for form creation that adds a new record for each field that is created. In essence, you can have unlimited fields because everytime the user creates a new field, the product inserts a new row into the "Field" table. I was wondering if anyone knows the term for this model type. I'd like to research it more.

Basically:

[/CODE]
declare @Fields table (ColumnName Varchar(20), DataType VarChar(20))

insert into @Fields (ColumnName, DataType)
values
('LastName', 'Varchar(30)')
,('FirstName', 'Varchar(30)')
,('Age', 'Int')
[CODE]

If anyone knows the term to search, I'd appreciate it!

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-08-29 : 21:15:17
Entity–attribute–value model

http://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model

and reference in sqlteam here
http://weblogs.sqlteam.com/davidm/articles/12117.aspx
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=57307
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=86062
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100384
and lots more


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

flamblaster
Constraint Violating Yak Guru

384 Posts

Posted - 2013-08-30 : 00:04:27
Aha! Thanks! Kept searching for the wrong terms. This is great, thanks Khtan.
Go to Top of Page

flamblaster
Constraint Violating Yak Guru

384 Posts

Posted - 2013-08-30 : 00:09:30
Aha! Thanks! Kept searching for the wrong terms. This is great, thanks Khtan.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-08-30 : 21:45:17
you are welcome


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-08-30 : 21:45:24
you are welcome


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -