Dear
java guru's
When I try to insert records in Access97 ---> no problem
but when I enter records in MS sql server then I got the following runtime exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
---------------------------------mycode---------------------------------------
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date xdate=sdf.parse(a2);
//java.sql.Date date=java.sql.Date.valueOf(a2);//I even try this but same exception
//System.out.println(date);
System.out.println(new java.sql.Date(xdate.getTime()));//2000-12-09
PreparedStatement updater = myConnection.prepareStatement("update FormA set age= ? ,"+
" cough= ? "
+ " where sitesrno= ? ");
updater.setInt(1,Integer.parseInt(a4));
updater.setString(2,a7);
updater.setDate(3,new java.sql.Date(xdate.getTime()));
updater.setInt(4,Integer.parseInt(s));
int updateCount = updater.executeUpdate();
updater.clearParameters();
any suggestions
kajal