Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am having a requirement where i have to create a form having nearly 100 fields. i have divided the form into three modules using multiview/tabs.can i have 100 columns in sql server table or should i use three tables by setting relationship using primary and foreign keys.

What I have tried:

i have tried using multiview where i have divided the form into three views and and make first view submission table as primary and remaining two views with fields as foreign keys. also tried by executing multiple query(transactions) at a time,but could not find the best solution.which one is effiecient and best!!!.
Posted
Updated 22-Jul-17 2:49am

1 solution

Have you tried to use wizard control??

I would recommend moving fields to different forms (logical grouping) from usability perspective. This way the the performance also would be better.
 
Share this answer
 
Comments
Member 12674660 22-Jul-17 9:06am    
thanks for that .but can i have 100 fields(columns) in a sql server table or should i use relationships by creating different tables??
Dave Kreskowiak 22-Jul-17 11:24am    
Possible? Easily.

Practical? That depends on your requirements and business rules, not an outside opinion where we know nothing about your project.
Atlapure Ambrish 24-Jul-17 0:44am    
It is up to your requirements, but it is possible to have 100 fields in one table. In fact if you use multiple tables say e.g. 4 tables with 25 columns each with foreign key reference, while fetching data from all these 4 tables will be a performance hit (as you would use joins). If you use single table you can simply fetch all the data at once and use it based with your logical grouping in front-end.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900