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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:34:19+00:00 2026-05-16T07:34:19+00:00

This is a 2 part question. Question 1: I am trying to create a

  • 0

This is a 2 part question.

Question 1: I am trying to create a foreign key on a table where I need to turn off the “Check Existing Data on Creation or Re-Enabling”. I know theres an option visually but I’m looking for a way to do it programmatically. Is there anyway to do this?

Question 2: I have a code table and two tables A and B that need to reference that code table. I want to have these both referenced from a relationship table but I want to able to use the same column. Can I have 2 foreign keys pointing to the same column?

  • 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-16T07:34:19+00:00Added an answer on May 16, 2026 at 7:34 am

    Yes you can have the same column inthe parent table refer to differnt columns in multiple tables.

    I do not recommend turning off checking FK on creation. If you have bad data now, you need to fix it now. Otherwise the first time someone edits one of those records it will fail the FK check then.

    From Books online as to why it is a bad idea to use nocheck:

    If you do not want to verify new CHECK
    or FOREIGN KEY constraints against
    existing data, use WITH NOCHECK. We do
    not recommend doing this, except in
    rare cases. The new constraint will be
    evaluated in all later data updates.
    Any constraint violations that are
    suppressed by WITH NOCHECK when the
    constraint is added may cause future
    updates to fail if they update rows
    with data that does not comply with
    the constraint.

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

Sidebar

Related Questions

This is an updated part 2 of a question I asked earlier. I'm trying
In relation to this previous question I am trying to create a batch file
Two part question Part one: I am trying to create an ASynchronous request to
this is a two part question from a JS newbie. So, I was trying
This is a three-part question. I am new to Android and am trying to
I guess this question is somewhat wide but I'm trying to create a C
This is two part question: I have two stored procedures: sp1 & sp2. If
This is actually a three-part question, which I'll explain below, but the questions are:
This is really a two part question: I'm seeing some users in the Grantee
This is really a three-part question, but I've answered the first question myself: I'm

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.