3
Reply

Formatting or Handling Sql Exceptions in c#

chandruswami Ramalingam

chandruswami Ramalingam

Apr 20 2010 8:02 AM
3k

Hi,
In C#, i got sql Exception which consists of 2 lines.
I need only the 2nd line of that Exception only.
Ex:
The transaction ended in the trigger.
Table Validation failed - Name: x; Condition: m!=0
i need "Table Validation failed - Name: x; Condition: m!=0" only.
I have tried e.LineNumber but it not works well.
Can anyone help me?

Answers (3)