Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 foreign key

Author  Topic 

aylin_sk
Starting Member

25 Posts

Posted - 2005-03-08 : 01:12:21
I got this error while im creating a foreign key...whats the problem??
SD_CENTER_ID:NOT NULL
S_CENTER_ID: NOT NULL


ERROR:

CONSTRAINT FK_SD_CENTER_ID
*
ORA-02298: cannot validate (MEDICAL.FK_SD_CENTER_ID) - parent keys not found


This is my code:

ALTER TABLE MEDICAL.SURVEY_DETAIL ADD
CONSTRAINT FK_SD_CENTER_ID
FOREIGN KEY (SD_CENTER_ID)
REFERENCES MEDICAL.SURVEY (S_CENTER_ID) ENABLE
VALIDATE;

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-03-08 : 05:36:33
www.dbforums.com/f4 will probably be better for you as this is not an oracle forum.

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -