Sybase sp only run in unchained transaction mode

在Webshere下连接Sybase DB,调用SP,报错如下:

com.sybase.jdbc4.jdbc.SybSQLException: Stored procedure 'db_xxx..po_get_xxx' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.

发现即使设置Connection.SetAutoCommit(true)也没有任何效果,照样报错,估计是Websphere强制设置为false了。


Sybase的SP的默认模式就是unchained transaction mode(AutoCommit:true),也真够奇葩的。

你可能感兴趣的:(Sybase sp only run in unchained transaction mode)