Error 1011004

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

Item Description

SQLCode

-1011004L

Constant

EMSG_FKEY_STILL_EXISTS_TO_CKEY

SQLState

QNA27

ODBC 2 State

ERROR

ODBC 3 State

ERROR

Sybase Error Code

20004

Severity Code

14

Probable cause

A primary key or unique constraint involved in a referential integrity relationship cannot be dropped until its corresponding foreign key is first dropped.


Created May 6, 2011. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com