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. Linking Tables

Linking Tables

Scheduled Pinned Locked Moved Database
database
2 Posts 2 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.
  • U Offline
    U Offline
    User 3738736
    wrote on last edited by
    #1

    I've got 2 tables: Province and Client When I link Province with client i get the ff message 'Province' table saved successfully 'Client' table - Unable to create relationship 'FK_Client_Province'. The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Client_Province". The conflict occurred in database "test", table "dbo.Province", column 'Province'. karabo

    K 1 Reply Last reply
    0
    • U User 3738736

      I've got 2 tables: Province and Client When I link Province with client i get the ff message 'Province' table saved successfully 'Client' table - Unable to create relationship 'FK_Client_Province'. The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Client_Province". The conflict occurred in database "test", table "dbo.Province", column 'Province'. karabo

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      not got your query in full. can you please give the sql statement reselted in this error. along with the 1. parent able and chield table 2. primary keys on the tables however what i under stook is province is parent and client is chield if so one column like provienceID should be primary key in province table and in client table's provienceID can refer to provience table

      Regards KP

      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