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
 General SQL Server Forums
 New to SQL Server Programming
 ForeignKeyConstraint

Author  Topic 

shemayb
Posting Yak Master

159 Posts

Posted - 2008-09-28 : 22:46:37
How do I trace this kind of exception?


ForeignKeyConstraint requires the child key values(TS) to exist in the parent table

Funnyfrog

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-29 : 00:26:56
Doesnt seem like MS SQL error.Anyways, it seems like you're trying to insert a value to child table which doesnt exist in parent table.Make usre value exists in parent table. if not, insert the value in parent table and then continue child insert.
Go to Top of Page

shemayb
Posting Yak Master

159 Posts

Posted - 2008-09-29 : 21:06:00
What does this mean?

I got that error when i added new column to my table.

Funnyfrog
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2008-09-29 : 23:01:40
show the ALTER TABLE statement you executed.


elsasoft.org
Go to Top of Page
   

- Advertisement -