X170: Referenced key field type(s) must match foreign key field type(s)

The fields, taken in order, of the PRIMARY or UNIQUE KEY referenced by a FOREIGN KEY must match the type of the fields in the foreign key.
Restriction: This topic applies to Windows environments only.