Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ERROR CODE 0

843854Oct 18 2002 — edited Oct 18 2002
Every time i try to insert values in an Microsoft ACCESS Database y get an SQLException where it says that the error code is 0 and the Message that appears is: "General"....

try
{
conexion =DriverManager.getConnection("jdbc:odbc:Base","","");

sentencia = conexion.createStatement();
sentencia.executeUpdate("INSERT INTO PRUEBA " +
"VALUES (2000, 'Jose','Torres',16987311)");
}
catch(SQLException e)
{
System.out.println(e.getMessage());
System.out.println(e.getErrorCode());
System.out.println(e.getSQLState());
}

Can anyone help me out
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2002
Added on Oct 18 2002
2 comments
1,470 views