on 02-15-2018 4:05 PM
Hi all,
we have a problem with a procedure on SAP HANA database.
We want to get autocommit off before upserting data in our custom table, is it possible to make this using a simple procedure?
Following this way, EXEC('commit') will be done as last statement to confirm data.
Thanks in advance.
Regards.
Dario.
AUTOCOMMIT is a connection-related setting. That means it depends on your current database connection.
It is not possible to change it within a running connection, so you cannot have a procedure change that setting for you.
For your scenario, it should be clear that autocommit works after each client-command. That is, when you call a procedure, the commit only happens once this call comes back, but not after each command that had been executed by the procedure (or other procedures that the "main" procedure called in-between).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.