Here is my problem:
I try to add a Foreign key between 2 tables with data already existing in it:
ALTER TABLE [dbo].[abonnement]
ADD CONSTRAINT abonnement_fk2 FOREIGN KEY (id_langue)
REFERENCES [dbo].[langue] (id_langue) ;
the table [abonnement] column id_langue contains 2 different value (EN,FR)
the table [langue] column id_langue contains 2 different value (en,fr)
SQL server (2012) returns me the following error:
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "abonnement_fk2". The conflict occurred in database "********", table "dbo.langue", column 'id_langue'.
I am not allowed to edit directly the "en, fr" and "EN,FR" data
How do i make my foreign key case case insensitive ?
Thanks for your help.