Does anyone have an idea as to why SQL Azure does not support with nolock SQL statements. Does Microsoft has any plans of supporting this in the future?
Does anyone have an idea as to why SQL Azure does not support with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I tried running a nolock query on SQL azure and it works. That got me thinking that the statement is ignored because technically you don’t have the option to set the database option (READ_COMMITTED_SNAPSHOT and ALLOW_SNAPSHOT_ISOLATION). I’m guessing this is the reason but I’ll try and do some more digging.
Note: this is an Azure limitation.
You can find more information here:
Update: after a quick discussion with two über SQL experts, the solution appears to be to use a query like:
So for every batch, you need to specify the isolation level.