on 09-11-2007 1:12 AM
Hi All,
Can we use Stored Procedure to read from Sybase Tables using sender JDBC Adapter?
Regards,
XIer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raj, I am using the same, however I receive the error:
<b>Database-level error reported by JDBC driver while executing statement 'execute fax_p_sap_test'. The JDBC driver returned the following error message: 'com.sybase.jdbc3.jdbc.SybSQLException: Stored procedure 'fax_p_sap_test' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode. '. For details, contact your database server vendor.</b>
Please Advice.
Regards,
Xier
XIer,
I read the below threads , I think it will be useful. Just read the below two links.
https://www.openadaptor.org/developerFAQ.html [ Read under Sybase Faq's]
raj.
Stored procedure could be written in chained or unchained mode. Default is unchained. The major difference is - in chained mode the number of "begin transaction" statements must match the number of commit "transaction statements".
1. Run the Sybase command:
sp_procxmode <procedure_name>,"anymode"
2. Call the method setAutoCommit(true) on the connection object
Regards,
Prateek
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.