So I should readonly lock application variables when I do a select in a
CFQUERY and an exclusive lock when I do anything that will change data? Is
that right?

Thanks.

Ian 

-------------------------------
 Locking is necessary for ALL shared scopes: session, application, server.

  The reason is that, because these scopes can be simultaneously accessed by
  multiple users and/or processes, there exists the possibility that the data
  can become corrupted. Locking access to these variables prevents this
  corruption.

  For example: Say there is a variable in the Application (or session or
  server) scope called Application.SomeVar. If user A begins to write data to
  this variable at the same time that user B is reading the data then the
data
  could become corrupted.

  Make sense?

  Regards,
  Seth Petry-Johnson
  Argo Enterprise and Associates

I understand why it is important to lock session variables but I don't
  > understand why it is important to lock application variables, especially
  when
  > they are the same for everyone. Basically, I only use application
  variables to
  > name my db information (db source, username, password, etc).


____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at 
http://webmail.netscape.com.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to