Ted: That's what the Hacker's Guide says. Mine is working fine this morning. I just pulled it off the shelf. ;^)

Any change to a table or dbc requires exclusive access. So creating triggers and default values (which is what I am doing here) requires exclusive access.

A trick I use quite a bit is index on myfield to myfield.idx. This allows me to index a table without exclusive access. I don't use this in my applications, but I use it when I am investigating something on a live system where I can't gain exclusive access.

Thanks,

Jeff

---------------

Jeff Johnson
[email protected]
(623) 582-0323

www.san-dc.com
www.arelationshipmanager.com

On 03/16/2013 05:20 AM, Ted Roche wrote:
Jeff:

What does the Hacker's Guide say? My CHM reader is not cooperating this
morning.

Add Table, Drop Table require exclusive database use. Validate, too.

Pretty much anything involving a table header update.


On Fri, Mar 15, 2013 at 9:01 PM, Jeff Johnson <[email protected]> wrote:

Also, it doesn't say but I am doing an Alter Table mytable Alter Column
mycolumn set default myproc() and it requires exclusive access.



Jeff

---------------

Jeff Johnson
[email protected]
(623) 582-0323

www.san-dc.com
www.arelationshipmanager.com

On 03/15/2013 04:04 PM, Fred Taylor wrote:

Note that the INSERT is not the SQL - INSERT type of command.  It's the
old
x-base command that requires exclusive access.

Fred


On Fri, Mar 15, 2013 at 3:23 PM, Jeff Johnson <[email protected]> wrote:

  Thank you everyone!
ON

     (The default for the global data session.) Limits accessibility of a
     table opened on a network to the user who opened it. The table isn't
     accessible to other users on the network. Unlike FLOCK( ), SET
     EXCLUSIVE ON also prevents all other users from having read-only
     access. A file can also be opened on a network for exclusive use by
     including the EXCLUSIVE clause with the USE command. It isn't
     necessary to perform record or file locking on a table opened for
     exclusive use.

     Opening a table for exclusive use ensures that the file can't be
     changed by other users. For some commands, execution isn't possible
     until a table is opened for exclusive use. These commands are
     INSERT, INSERT BLANK, MODIFY STRUCTURE, PACK, REINDEX, and ZAP.



Jeff

---------------

Jeff Johnson
[email protected]
(623) 582-0323

www.san-dc.com
www.arelationshipmanager.com

On 03/15/2013 01:27 PM, Dan Covill wrote:

  There's one in the Help under SET EXCLUSIVE.
Dan

On 03/15/13 11:25 AM, Jeff Johnson wrote:

  I went looking for a list of VFP functions that require exclusive
access
to the table or database and could not find one.  Is there such an
animal?


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to