aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in savepoint" Watch "Problem in savepoint" New topic
Author

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
}
else{
conn.commit();
}

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

Regards


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

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


Ping & DNS - updated with new look and Ping home screen widget
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
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
Savepoint