How the EXCLUSIVE Setting Interacts With OPEN DATABASE Command

Last reviewed: September 17, 1995
Article ID: Q136857
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SUMMARY

When a database is opened in SHARED mode, it is automatically marked READONLY in the Database Designer. Therefore, the object definitions in the database cannot be modified. This article describes the settings that affect whether a database is opened in EXCLUSIVE or SHARED mode.

MORE INFORMATION

The most straightforward way to make sure you open a database in the mode you want is to explicitly use the keywords EXCLUSIVE or SHARED in the OPEN DATABASE command. If these keywords are left off, Visual FoxPro uses the global EXCLUSIVE setting currently in effect. This setting is originally read from the registry, but it can be changed with either the SET EXCLUSIVE command or through the menus (on the Tools menu, click Options. Then click Data, and select the Open Exclusive check box.


Additional reference words: 3.00 VFoxWin
KBCategory: kbprg
KBSubcategory: FxprgTable


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.