this is my code and im getting the above show error plzz help i hav checked the data base my database is in MS ACCESS.all tables are proper i need urgent help
try { stmt = conn.createStatement(); stmt.executeQuery( "SELECT storyname,parent1,parent2,parent3,target,event,story FROM data"); }catch( Exception e ){System.err.println(e+"mansi");} } this part of my code is giving exception
mansi gandhi
Greenhorn
Joined: Apr 12, 2008
Posts: 3
posted
0
i have tried what you told me to but still I'm getting the same error..
Hi I don't think "Too few Parameters" exception would be thrown for a simple select statement like yours. Can you post the full error stack trace? This will enable folks to narrow down to the problem faster. Are you sure that you are able to connect to the DB? Jhakda
If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters