This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes SybSQLException: Stored procedure 'xxx be run only in un chained mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SybSQLException: Stored procedure Watch "SybSQLException: Stored procedure New topic
Author

SybSQLException: Stored procedure 'xxx be run only in un chained mode

srinivas nama
Greenhorn

Joined: Aug 20, 2001
Posts: 3
com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'ap_SystemAccess' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.
I am trying to execute procedure,
//cs.executeUpdate("SET CHAINED OFF");
// String sptest = " { call sp_procxmode ccsys.dbo.ap_SystemAccess" + "," + " anymode }" ;

//CallableStatement aStmt = con.prepareCall(sptest);

//boolean rc12 =aStmt.execute();
// rs = stmt.executeQuery("EXEC myProc");

boolean rc1 = cs.execute();
con.commit();
con.setAutoCommit(true);
It is giving me above error, then I tried to run sp_proxmode anymode, it is giving syntax error near '.'[ccsys.dbo.ap_SystemAccess]
any help appreciated,
Thanks,
Srini
 
Have you checked out Aspose?
 
subject: SybSQLException: Stored procedure 'xxx be run only in un chained mode
 
It's not a secret anymore!