Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TaxDetails_MasterTable". The conflict occurred in database "E:\23\DEVELOPMENT\SOURCE\CERPWEB\APP_DATA\ASPNETDB.MDF", table "dbo.MasterTable".
The statement has been terminated
Posted

1 solution

Generally This error occurs when performing an INSERT command on a table and one of the columns of the table references a primary key on another table and the value being inserted to that particular column does not exist in the other table.
Take a look at this-[The conflict occurred in database Database][^] article it will help you to solve your problem.
 
Share this answer
 
Comments
Uday P.Singh 25-Jul-11 6:12am    
my 5!
RaviRanjanKr 25-Jul-11 6:21am    
Thanks Uday :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900