I am trying to create a relationship between two tables in server management studio using the relationships dialog box.
The master table tblMeetings has a primary key "M_ID" of datatype varchar(10). The child table tblStandardMeetingInvitees also has a field "M_ID" of datatype varchar(10) intended to be the foreign key.
The relationships dialog box allows me to set up the relationship fine. But when I go to save I keep getting the following error:
'tblMeetings' table saved successfully
'tblStandardMeetingInvitees' table
- Unable to create relationship 'FK_tblStandardMeetingInvitees_tblMeetings'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_tblStandardMeetingInvitees_tblMeetings". The conflict occurred in database "Meetings", table "dbo.tblMeetings", column 'M_ID'.
I am a little confused and would appreciate any advice.
The master table tblMeetings has a primary key "M_ID" of datatype varchar(10). The child table tblStandardMeetingInvitees also has a field "M_ID" of datatype varchar(10) intended to be the foreign key.
The relationships dialog box allows me to set up the relationship fine. But when I go to save I keep getting the following error:
'tblMeetings' table saved successfully
'tblStandardMeetingInvitees' table
- Unable to create relationship 'FK_tblStandardMeetingInvitees_tblMeetings'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_tblStandardMeetingInvitees_tblMeetings". The conflict occurred in database "Meetings", table "dbo.tblMeetings", column 'M_ID'.
I am a little confused and would appreciate any advice.