wood burning stoves 2.0*
The moose likes JDBC and the fly likes execute() method doesn't execute. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "execute() method doesn Watch "execute() method doesn New topic

execute() method doesn't execute.

Ketul Parikh

Joined: Jul 17, 2009
Posts: 14
Hi All,

A problem which I fail to understand...

Everything above the ps.execute() is executed, everything below the ps.execute() is executed, which means no exception is generated by execute() method.

Which means that the query is successfully executed. But since my query was of insert, i could very well verify that no record was inserted.

Has anybody encountered this problem before? Is there any possibility that this is a problem, may be due to database?

Can someone help?

Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 489

Was the insert done in a transaction and was it committed?
Also, what database are you using?
wood burning stoves
subject: execute() method doesn't execute.
Similar Threads
JDBC-ODBC with Access : Error in Execution
ant targets use to execute sql queries
how to retrieve the id of a record just inserted?
java.lang.OutOfMemoryError: Java heap space while Executing the Query
Jdbc Prepared Statement execute()