We continued our googling for more info on support for autonomous transactions and handling clob datatypes in procedures in non-oracle databases. For a moment we switched our focus to MS SQL server.
With its support to accept text datatypes as parameters in procedures it looked promising. On further analysis we found it has a feature called table variables to allow 'kind of' autonomous transaction behaviour. The so called table variables does not participate in the transaction!! so one can store data in these variables and can rollback the transaction without any worries. The data in the table variables shall be retained as they are independant of transaction.
Unfortunately even this is not helpful for us as we want to control transactions from our Java program, not in the procedures. Our program would start a transaction and then invoke a procedure so rollback shall be invoked by the application after the procedure invocation is over, based on the output generated by the procedure.
Finally with its support for handling text/clob, MS SQL server seems to be better choice than Sybase.
With its support to accept text datatypes as parameters in procedures it looked promising. On further analysis we found it has a feature called table variables to allow 'kind of' autonomous transaction behaviour. The so called table variables does not participate in the transaction!! so one can store data in these variables and can rollback the transaction without any worries. The data in the table variables shall be retained as they are independant of transaction.
Unfortunately even this is not helpful for us as we want to control transactions from our Java program, not in the procedures. Our program would start a transaction and then invoke a procedure so rollback shall be invoked by the application after the procedure invocation is over, based on the output generated by the procedure.
Finally with its support for handling text/clob, MS SQL server seems to be better choice than Sybase.