Article ID: 130659
Article Last Modified on 2/12/2007
ISEXCLUSIVE([cTableAlias | nWorkArea | cDatabaseName [, nType]])
CLOSE ALL
OPEN DATABASE SYS(2004)+"SAMPLES\DATA\TESTDATA"
SELECT 0
USE CUSTOMER
IF ISEXCLUSIVE('testdata',2)
INDEX ON CITY TAG CITY
ELSE
=MESSAGEBOX("Database must be opened Exclusively")
ENDIF
CLOSE DATABASE
NOTE: The above code uses CLOSE ALL to close all the files so that the
database can be opened but not selected, making the CLOSE DATABASE command
useless. Of course using CLOSE DATABASE ALL might not be helpful if only
one database needs to be closed. Therefore, issue the following code to
select a certain database to close and reopen:
SET DATABASE TO <dbc name> CLOSE DATABASE OPEN DATABASE <dbc name> EXCLUSIVEThis ensures that the correct database container is selected, closed, and reopened.
CREATE TABLE
MODIFY STRUCTURE
ALTER TABLE
ADD TABLE
RENAME TABLE
CREATE SQL VIEW
MODIFY VIEW
DELETE VIEW
RENAME VIEW
CREATE CONNECTION
MODIFY CONNECTION
DELETE CONNECTION
RENAME CONNECTION
INDEX ON && You can however use INDEX ON on a view
DELETE TAG
CREATE TRIGGER
DELETE TRIGGER
APPEND PROCEDURES
COPY PROCEDURES
MODIFY PROCEDURE
COMPILE DATABASE
PACK DATABASE
VALIDATE DATABASE
Additional query words: denied
Keywords: kbnetwork kbprb kbprogramming KB130659