duraliozkan adlı üyeden alıntı: mesajı görüntüle
Msg 1776, Level 16, State 0, Line 1
There are no primary or candidate keys in the referenced table 'stokreceived' that match the referencing column list in the foreign key 'UrunKodu'.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
Referans yapılan tablo (stokreceived) isimli tabloda 'UrunKodu' isimli kolon olmadığı için eşleşmeme hatası alıyorsun. Attribute isminde bir problem var. Tabloyu kontrol et.

İkinci hata iste ilk hatadan türetilen bir hata olduğunu belirtiyor. Constraint diğer tablodan 'UrunKodu'nu almak istiyor ancak bir önceki hata gibi 'UrunKodu' isimli kolonu bulamadığı için oluyor.