Table '%1' has no primary key

Item Value
SQLCODE -118
Constant SQLE_NO_PRIMARY_KEY
SQLSTATE 55008
Sybase error code 1719
ODBC 2 State 42000
ODBC 3 State 42000
Parameter 1 Name of the table that does not have a primary key.

Probable cause 

You attempted to add a foreign key referring to a table that does not have a primary key. You must add a primary key to the referenced table.