To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-21-2002, 11:51 AM
noel noel is offline
Junior Member
 
Join Date: Nov 2002
Posts: 1
integrity constraint???

hi there

i need some help!!!

ive created a database for a company.
all the tables created fine in sql.

but the problem comes when i INSERT the employee details. i have ten employees.
6 load ok but the fifth on causes a problem. ie employee 1.....employee 4 and employee 6 all work ok but the others dont.

i get an error message stating:

integrity constraint(DSA31.SYS_C00325577)
violated -
parent key not found


anyone got any idea how to solve this??

thanks
noel.
Reply With Quote
  #2  
Old 11-26-2002, 01:26 PM
sjimmo sjimmo is offline
Junior Member
 
Join Date: Nov 2002
Location: Chicopee, MA
Posts: 12
It would appear that you have a foreign key in this table which refers to a parent table. The information is missing in the parent table.

Check your table which contains the parent record and ensure that there is a corresponding record there.
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:31 AM.


DatabaseJournal Recent Articles


 » Grouping with SQL Server 2008

 » Conducting Service Broker Conversation Usi...

 » Applying data warehousing principles to ev...

 » Oracle New Year's resolutions, part 1: Adv...

 » Hands on: Understanding SQL queries

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.