SQL Server Error Msg 21576 – Cannot add a logical record relationship between tables ‘%s’ and ‘%s’ because the foreign key column ‘%s’ in table ‘%s’ allows NULL values. Alter the column to disallow NULL values.

In this blog post, let’s learn about the error message “21576 – Cannot add a logical record relationship between tables ‘%s’ and ‘%s’ because the foreign key column ‘%s’ in table ‘%s’ allows NULL values. Alter the column to disallow NULL values.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

21576 – Cannot add a logical record relationship between tables ‘%s’ and ‘%s’ because the foreign key column ‘%s’ in table ‘%s’ allows NULL values. Alter the column to disallow NULL values.

Reason for the Error

To be update soon…

Solution

To be update soon…