I have a SQL Server INSERT sentence like below:
insert into foo( num, a, b ) values
(1, a, b),
(2, a, b),
...
(9999, a, b);
But there is a "INSERT statement conflicted with the FOREIGN KEY constraint" error. The problem is that SQL Server does not tell me which exactly is the value or line with the problem. How can I quickly find what the value with the error?