I
itsupport1
Hi,
I am importing some records from one table to another table, and due to
Constraints in the destination table, it Throws an Exception and Skip the
Whole Rest of records.
So I did implement the On Error Resume next Statement, to avoid skipping the
process of Inserting the records.
But the Problem is
I have only 10 Rows in Source table and 100 rows in Destination table, But
it through Exception Like This.
11/3/2004 8:57:42 AM The server threw an exception.
11/3/2004 8:57:42 AM INSERT statement conflicted with TABLE FOREIGN KEY
constraint 'FK_Result_Property'. The conflict occurred in database
'dmyData', table Property'.
The statement has been terminated.
This statement appeared more than 40 times , why it is logging it more than
40 times, as I have only Ten rows to Verify?
Here is my Error Trapping procedure
errr:
If Err.Number <> 0 Then
Call WritetoTextFile(Err.Description)
Err.Clear()
Resume Next
End If
*Waiting for Favourable reply, and Thanks in Advance
Jj........
I am importing some records from one table to another table, and due to
Constraints in the destination table, it Throws an Exception and Skip the
Whole Rest of records.
So I did implement the On Error Resume next Statement, to avoid skipping the
process of Inserting the records.
But the Problem is
I have only 10 Rows in Source table and 100 rows in Destination table, But
it through Exception Like This.
11/3/2004 8:57:42 AM The server threw an exception.
11/3/2004 8:57:42 AM INSERT statement conflicted with TABLE FOREIGN KEY
constraint 'FK_Result_Property'. The conflict occurred in database
'dmyData', table Property'.
The statement has been terminated.
This statement appeared more than 40 times , why it is logging it more than
40 times, as I have only Ten rows to Verify?
Here is my Error Trapping procedure
errr:
If Err.Number <> 0 Then
Call WritetoTextFile(Err.Description)
Err.Clear()
Resume Next
End If
*Waiting for Favourable reply, and Thanks in Advance
Jj........