This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
srinivas nama
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic