Error 1011004

Message text

Cannot drop primary key or unique constraint because a foreign key still references it.

Item

Value

SQLCode

-1011004

Constant

EMSG_FKEY_STILL_EXISTS_TO_CKEY

SQLState

QNA27

ODBC State

ERROR

Probable cause

An associated foreign key constraint still exists. You cannot drop a primary key or unique constraint when a foreign key still references it.