error in saving

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amu
    New Member
    • Aug 2007
    • 3

    error in saving

    Would you please help me because i am trying to save using oracle but i am coding with VB.net and my forms are designed using A.S.P.net.
    the error is ORA-02291: integrity constraint (SCOTT.STUDENT_ INFOR_FK) violated - parent key not found
    ORA-06512: at "SCOTT.ADD_STUD ENT_INFOR", line 4

    i think its my stored procedures but i'm not sure
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    that is because you are trying to insert some record to a child table for which there is no parent key in the referenced parent table. It has nothing to do with .net . It is because of error in database design and the implemented logic in your code through the stored procedure.

    Comment

    Working...