dbTalk Databases Forums  

VFP 6, SQL: Locking?

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6, SQL: Locking? in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6, SQL: Locking? - 12-13-2004 , 10:09 PM






When a select is being executed, are there any protections in
place against tables being changed while the select is executing?

I think the answer is: For a table that is in a database,
transactions protect against this, but for a free table, there is no
protection.

One possible way around the protection: Can a transaction be
committed while a select is executing? I hope not, but is this
guaranteed? (If it is not guaranteed, multi-table selects could get
messed up.)

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

Reply With Quote
  #2  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP 6, SQL: Locking? - 12-14-2004 , 10:42 AM






There are no more protections on SELECT than there are on APPEND
BLANK/REPLACE.

Since VFP applications (and transactions) happen in memory on the
workstations, there is no way for one workstation to know what the other is
doing save for record/file locking that we've been using since dBase II.

Dan

Gene Wirchenko wrote:
Quote:
When a select is being executed, are there any protections in
place against tables being changed while the select is executing?

I think the answer is: For a table that is in a database,
transactions protect against this, but for a free table, there is no
protection.

One possible way around the protection: Can a transaction be
committed while a select is executing? I hope not, but is this
guaranteed? (If it is not guaranteed, multi-table selects could get
messed up.)

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.