• What's wrong is that the primary key of the table you're referencing is not on the column that you're using in the foreign key. A foreign key requires that the referenced column either has a primary key, unique constraint or unique index.

    p.s. In future please break your posts up into paragraphs. That was incredibly hard to read.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass