Hi Carlo,
why dont you use the try catch pair to catch any SQLException which will
return you the error code from the database.
Follow this:
try{
// your code
} catch(SQLException e)
{
System.out.println(e);
}
Hope this helps
Yogesh Agarwal
Software Engineer
IMRGlobal Corp.
#22, SEEPZ, Andheri(E),
Mumbai - 400 096
Phone : 91-22-8291421 Ext 151
Mail to : [EMAIL PROTECTED]
-----Original Message-----
From: Carlo Indolfi <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, July 05, 1999 5:11 PM
Subject: SQL Error Message
>Hi to all!!
>
>Just only a question. Is possible with Java get the Error Message
>returned from a DataBase?
>With the Java.Sql, I've seen that it can only retrieve the ErrorCode
>with the .getErrorCode()
>method.
>
>Thank's in advance
>Regards
>Carlo
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html