This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Problem in savepoint 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 "Problem in savepoint" Watch "Problem in savepoint" New topic

Problem in savepoint

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
I have problem while using Savepoint in my code. the code is something like this.

Savepoint asd = new Savepoint("asd");

//do the Process

if (!success){ //sucess is a boolean which says what the process returned
conn.rollback(asd); //conn is the connection variable

It gives me -880 error. Please help me in this regard


Am not a pro and thats why am here!!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41095
Which database do you use? What does its documentation say is error -880? Does the DB even support SavePoints?

Ping & DNS - my free Android networking tools app
Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
I am using DB2 and am calling an SP in the process i had described. The description given is that there is no such savepoint or it is not valid in the context used.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Problem in savepoint
Similar Threads
overloding-typecasting confusion
rollback transaction for single phase commit
I have name of a savepoint, can i rollback to that savepoint?
jdbc 3.0 Savepoint feature not working