May 16, 2009 at 1:31 am
Hi,
While inserting the values gets error because of certain problem. Can you please anyone give me the way to display the error message along with the field or value caused for error in catch block?
For Example,
Begin try
Insert into emp values(.........)
Insert into emp values(.........)
Insert into emp values(.........)
.
.
.
End try
Begin Catch
End Catch
I want to display which field or value causes error in multiple insert stmt. Please its urgent
Thanks,
Anitha
May 16, 2009 at 5:16 am
Hi Anitha
I don't think there is a build-in functionality available.
Greets
Flo
May 16, 2009 at 10:34 pm
Rather than programming by exception using Try/Catch, it would be better to precertify the data as "insertable" using a staging table.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply