Hi Chaitanya.M, Ora-00001 is an oracle error code for "unique constraint violated". One solution is to check before insert/update, that can avoid insert/update duplicate value to a unique column. The other way is catch the exception message and replace it with your own word. E.g. catch (Exception exp) { if (exp.Message.Contains("ora-00001")) { throw new Exception("Cannot insert duplicate value to XXX column!"); } } Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't.- Marked As Answer byChaitanya.M Thursday, July 16, 2009 12:27 PM
-
|