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 6945569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:27:11+00:00 2026-05-27T13:27:11+00:00

I Started of thinking that I would just manually entering in my data through

  • 0

I Started of thinking that I would just manually entering in my data through ms sql for a project I am working on(this is a prototype/ proof of concept project) but after designing the database I see it’s just going to be a pain and probably won’t save me any time, so I am going to develop a form that I can fill out and have it save to the database.

When I was thinking of manual entering data I designed my database like this

Product table has one Country and a Country Table can have many Products.

I was trying to make sure there would be no typos as I would have to hook it up to an existing Country vs just having a field call Country in the products table and open it up to typos.

Now since I am going to enter it in through a form, I am wondering is there really a point to have this separate table in this case?

I was thinking of instead put it in the product table but in my C# code create an enum called Country with the valid Countries list. So this should stop any typos as I would probably have it as a dropdown and if it can’t convert into the enum it would fail.

I think in this case it makes more sense to do this versus having the separate table called Country with an PK and Name field.

I wanted to hear other peoples thoughts though.

  • 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-27T13:27:12+00:00Added an answer on May 27, 2026 at 1:27 pm

    A separate table which uses a non-sensical key (which could be an enum internally or an identity column) and a display value is the best design for the following reasons:

    1) If a country name changes (which is a not-infrequent event recently) or is added, you won’t have to recompile.

    2) If your application is used in different countries, they will almost certainly have different spellings for other countries, in which case it is much easier to update the database than produce a different version of your application for each country it is sold in.

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

Sidebar

Related Questions

I just started working on some changes against trunk on an SVN repo, thinking
I have just started working on a reusable library. This library is going to
I just started thinking about creating/customizing a web crawler today, and know very little
I've just started to learn C (using Thinking In C ) and I'm wondering
I just started thinking about using the NHibernate second level cache in one of
I don't know why I started thinking about this, but now I can't seem
Today I started thinking about a new project, and I found one. The goal
I've been thinking about nested try/catch statements and started to think about under which
Started with this question: OpenID. How do you logout OK. So OpenID does not
I started using subversion for one of my projects and it would be absolutely

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.