aspose file tools*
The moose likes JDBC and the fly likes Update statement not executing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Update statement not executing" Watch "Update statement not executing" New topic
Author

Update statement not executing

saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

Hi All,

I am facing an unique problem.I am firing an Update statement, but the executions gets hang there in the statement.

Please find the code below.



In the abive program SOP after the executeUpdate() statement is not printing.


Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

i have solved the problem

cheers
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

what was the problem?
Ashok Mash
Ranch Hand

Joined: Oct 13, 2000
Posts: 1936
Yeah, what was it? Was the original table locked by another application?


[ flickr ]
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

i dont know the exact reason for it........but i did the commit on the table.Then it started working.
Then now i have put con.commit() in the code.So, its working fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Update statement not executing