Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error message

Status
Not open for further replies.

shaminda

Programmer
Jun 9, 2000
170
US
I have a VB program that runs 24 hours a day in about 8 machines. I get the following error, and I can't figure out the problem.

-2147217900 [MICROSOFT][ODBC SQL SERVER DRIVER][SQL SERVER] INSERT STATEMENT CONFLICTED WITH TABLE FOREIGN KEY CONSTRAINT 'FK_ITEMORDER_SHIFT'. THE CONFLICT OCCURED IN DATABASE 'lotctrl' TABLE 'Shift'

Does anybody know the meaning and the solution for this error?
 
This error means :
In the database "loctrl" you have a table "shift" where you have defined a foreign key constaint or rule by the name of "FK_ITEM_SHIFT". Now one of the row inserts that you are trying to perform violates this rule.
You can look into the contents of the rule and see what exactly it says. Also you can trap the offending record by displaying a part of the record just before the execution of the insert statement(if u r using VB)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top