Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5940411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:57:51+00:00 2026-05-22T15:57:51+00:00

I’m designing a program along with its database from scratch. What would be the

  • 0

I’m designing a program along with its database from scratch. What would be the best database design for the following scenario (SQL 2008 R2, C#):

The program will be sold to various customers with different needs. That’s why I’m trying to make it as extensible as possible. in Code-Side, I’m using DI for a plugin-based architecture.

But for the db-side:
Each customer may or may not want to add additional information to users/entities. With different data types. How should I design my db to be able to easily add additional data with minimum touch?

  • Create an additional column in required tables which stores any other info about the entity in XML or CSV format and parse in in code-behind.
  • Create a new table which holds the ID of an entity and has a key/value pair columns along with a DataType column(e.g. Key="IsPremiumMember", DataType="boolean", value="true") and parse it in code-behind.

Which approach would you suggest and why?
Any other workarounds I should consider?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:57:52+00:00Added an answer on May 22, 2026 at 3:57 pm

    How should I design my db to be able to easily add additional data with minimum touch?

    If the universe of possible columns is enumerable, then you could build your tables with the standard columns, and allow your clients to add the additional columns from your list of possible columns. This would be flexible without being too difficult to code in SQL.

    If the universe of possible columns is unknown, you could use the Key / Type / Value pattern. As marc_s said, it’s flexible, but more difficult to code SQL.

    Finally, you could allow your clients to define the tables with any columns they wish. Your software would have to read the database system column and database system index tables to determine what the column names and index paths are. This kind of software would be at least an order of magnitude more difficult to write, as the SQL would be generated by the results of database system tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.