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 Administration (2000)
 problem with foreign key its very urgent

Author  Topic 

asifbhura
Posting Yak Master

165 Posts

Posted - 2005-02-24 : 02:46:26
Hi everyone

I am trying insert records in database using Visual basic but it gives error as below

ERROR:
ERROR:

" Insert statement conflicted with clolumnforeign key constraint "fk_import_basic_jobs" . The conflict ocurred in database bayan,table 'jobs', column 'job_code'.

what could be problem and what is solution.

Please its very urgent

Waiting for reply.

Thanx in advance

nr
SQLTeam MVY

12543 Posts

Posted - 2005-02-24 : 03:01:45
Have a look at the constraint fk_import_basic_jobs.
You probably have a list of job_codes somewhere and are trying to input an invalid one.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-02-24 : 07:14:57
Please do not cross post:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=46317
Go to Top of Page
   

- Advertisement -