Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Persisted Primary Key?

Persisted Primary Key?

Scheduled Pinned Locked Moved Database
helpregexquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    H JJ
    wrote on last edited by
    #1

    Friends, Iam using Persisted Primary key constraint for one column in a table. while creating another table using of the above table column as reference constraint getting the following error. "There are no primary or candidate keys in the referenced table that match the referencing column list in the foreign key." How could I resolve this issue?

    M L 2 Replies Last reply
    0
    • H H JJ

      Friends, Iam using Persisted Primary key constraint for one column in a table. while creating another table using of the above table column as reference constraint getting the following error. "There are no primary or candidate keys in the referenced table that match the referencing column list in the foreign key." How could I resolve this issue?

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      What database are you using, candidate key does not sound familiar.

      Never underestimate the power of human stupidity RAH

      H 1 Reply Last reply
      0
      • M Mycroft Holmes

        What database are you using, candidate key does not sound familiar.

        Never underestimate the power of human stupidity RAH

        H Offline
        H Offline
        H JJ
        wrote on last edited by
        #3

        SQL Server 2008 R2

        1 Reply Last reply
        0
        • H H JJ

          Friends, Iam using Persisted Primary key constraint for one column in a table. while creating another table using of the above table column as reference constraint getting the following error. "There are no primary or candidate keys in the referenced table that match the referencing column list in the foreign key." How could I resolve this issue?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          H JJ wrote:

          How could I resolve this issue?

          Have a look here[^]. A persisted column, that'd be a computed/calculated field? Are you sure that's a good idea to use as a primary key?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          J 1 Reply Last reply
          0
          • L Lost User

            H JJ wrote:

            How could I resolve this issue?

            Have a look here[^]. A persisted column, that'd be a computed/calculated field? Are you sure that's a good idea to use as a primary key?

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            J Offline
            J Offline
            Jorgen Andersson
            wrote on last edited by
            #5

            Eddy Vluggen wrote:

            A persisted column, that'd be a computed/calculated field? Are you sure that's a good idea to use as a primary key?

            It shouldn't even be allowed in my opinion

            "The ones who care enough to do it right care too much to compromise." Matthew Faithfull

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups