Seaquel
SQL Server error code

SQL Server error 1766

SQL Server raises error 1766 at severity 16, which marks a problem with the query or data that you can correct.

Foreign key references to temporary tables are not supported. Foreign key '%.*ls'.
Msg1766
Severity16
Group1000–1999

Source: Database Engine events and errors