Witam, wykonuję taką czynność:
ALTER TABLE dbo.A
ADD CONSTRAINT Relacja_nr1 FOREIGN
KEY(x) REFERENCES dbo.B(y)
Wyskakuje błąd:
Msg 547, Level 16, State 0, Line 1
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "Relacja_nr1. The conflict occurred in database "Biblioteka", table "dbo.B", column 'y'.
Jak to naprawić?