473,396 Members | 1,913 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,396 software developers and data experts.

User configurable table designs

To the pros:,
I have one question about designing tables and interface (web/windows
applications). The requirement is like this.
I want to design an application to manage upload / review / manage
files which has some meta data associated with them as well. The files
can be any documents. This application can be used in different
companies same way, but each company wants to use different field
names.

So, I want to design tables generic enough to allow custom labelling
fields. So if I have a table

T1 with ID, FileName, FileSize, FileAuthor.... some company may want
to use different field names. What's the best way to design tables
like this and how to maintain relationships, stored procs, triggers
etc linked to these tables.

Many thanks in advance,
DS

Jun 12 '07 #1
1 1486
(ds**********@gmail.com) writes:
To the pros:,
I have one question about designing tables and interface (web/windows
applications). The requirement is like this.
I want to design an application to manage upload / review / manage
files which has some meta data associated with them as well. The files
can be any documents. This application can be used in different
companies same way, but each company wants to use different field
names.

So, I want to design tables generic enough to allow custom labelling
fields. So if I have a table

T1 with ID, FileName, FileSize, FileAuthor.... some company may want
to use different field names. What's the best way to design tables
like this and how to maintain relationships, stored procs, triggers
etc linked to these tables.
Why would your clients want to have a say on how you name your table
columns. This is a very dubious requirement, and one that could be
very costly to implement and maintain.

It may be that clients want to attach extra attributes to the documents
which are not in your basic design. This can be handled by an EAV design.
(Entity-attribute-value). That is, you have a subtable with the columns (ID,
Attribute, Value). Preferrably another table defines the attributes, and
the permitted domains for the attributes.

While sounds neat, beware that EAV can be very problematic it you need
to run queries against it. If you can define the desired attributes as
columns, do so.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jun 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
by: Scotter | last post by:
Okay I think my title line was worded misleadingly. So here goes again. I've got quite 20 identical MDB files running on an IIS5 server. From time to time I need to go into various tables and add...
3
by: Gary Besta | last post by:
I am trying to add a simple case statement to a stored procedure or user defined function. However when I try and save the function/procedure I get 2 syntax errors. Running the query in query...
15
by: Deano | last post by:
I've posted about this subject before but haven't really got anywhere yet. I have now come up with a plan of action that takes into account my strong desire to implement save/discard functionality...
1
by: Anthony Sox | last post by:
anyone know a good book or online resource on user control design in windows forms. thanks
4
by: Shug | last post by:
Hi, We need a C++ beautifier, and due to the specific requirements of some of our developers, it has to be very configurable. After trying some free ones, we now realise that we might need to...
0
by: Jesse Houwing | last post by:
Hey all, I've been asked for a customer to write a piece of data access using EntLib 2.0. I'd like to use the standard entlib database factory class because a transition to SQL Server is still a...
95
by: hstagni | last post by:
Where can I find a library to created text-based windows applications? Im looking for a library that can make windows and buttons inside console.. Many old apps were make like this, i guess ...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
5
by: greek_bill | last post by:
Hi, I'm trying to develop a system where I can register some data/ information about a class. For example // ClassInfo.h template <class T> struct ClassInfo { static const std::string ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.