on 06-22-2017 9:23 AM
Hi. Have anyone else noticed (or is is me that is wrong) that HANA transaction can't rollback create and drop of stored proceures. Example. If you create a Store procedure and call it "MyProcedure" Then run the following SQL in the console of HANA Studio: SET TRANSACTION; DROP PROCEDURE "MyProcedure"; ROLLBACK; I would have imagined that after running this the procedure should still be there but it is not... Bug or Am i doing something wrong?
Hi Rasmus,
All DDL statements (Create,Drop etc) are Rollback-proof, I mean you can not rollback against a fired DDL statement, because an automatic implicit commit gets fired after a successful DDL statement.
And It's same for almost all DB vendors.(except PostgreSQL)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rasmus,
Maybe I'm resurrecting an old thread, but in case someone falls here: By default HANA server implicitly commits all DDL statements: ALTER/DROP/CREATE TABLE/PROCEDURE etc. To change this behaviour there is a session property "TRANSACTION AUTOCOMMIT DDL". If you set it to OFF you can handle these transactions yourself. More information in SAP HELP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
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.