October 12, 2013 at 1:37 am
Hi everyone,
Could you please tell me Why should we lock variable before access it in the script task?
Thanks in advance,
Sharmi
October 22, 2013 at 3:57 am
sounds like homework to me...
You want to lock the variable so that no other process can change the value whilst your script runs, otherwise any logical processing you do may be affected by the change in value leading to unexpected results which woudl be really difficult to debug.
Also, I am not sure that you can change the value of a variable within the script unless you have it locked for write.
October 22, 2013 at 4:59 am
aaron.reese (10/22/2013)
Also, I am not sure that you can change the value of a variable within the script unless you have it locked for write.
I never lock variables. Never ran into an issue either.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy