on 11-19-2013 8:40 AM
Hi,
Does anyone know the alternative in HANA for a SQL query containing WITH (NOLOCK) phrase?
For example, if the SQL query is:
SELECT DocNum FROM ORIN WITH (NOLOCK) WHERE DocEntry = N'1'
then what is the corresponding statement in HANA?
Regards,
Yash
Hi Yash,
I don't think HANA allows Dirty reads. Please refer to the SQL script documenation (Press F1 in HANA Studio and search for SET TRANSACTION).
The current transaction isolation levels are as follows:
<isolation_level> ::= ISOLATION LEVEL <level>
<level> ::= READ COMMITTED | REPEATABLE READ | SERIALIZABLE
Is there a reason why you need to read the uncommitted transactions.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yash,
Do you have a real business requirement for this. Such implementation could lead to data inconsistency in the system. If the dirty transaction gets rolled back, it could lead to incorrect data which is based on the dirty data.
Dirty read is not generally recommended from the data consistency perspective. Anyway, I think in HANA it is not yet supported.
Regards,
Ravi
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.