Command SET AXS LOCKING Professional
Set the ADS locking scheme.
Syntax
SET AXS LOCKING on|OFF
Parameters
The parameter ON|OFF determines either to set the ADS locking scheme to ADSDBE_PROPRIETARY_LOCKING (ON) or to ADSDBE_COMPATIBLE_LOCKING (OFF).
Description
With this command, the proprietary locking scheme of the ADSDBE can be turned ON or OFF. See the function AX_AXSLocking() for further details.
Examples
#include "ads.ch"
// Install ADSDBE as default database engine.
PROCEDURE DbeSys
IF !DbeLoad( "ADSDBE" )
Alert( "ADSDBE could not be installed!" )
ENDIF
DbeSetDefault( "ADSDBE" )
RETURN
PROCEDURE Main
// Connect to database server.
LOCAL cConnect := "DBE=ADSDBE;SERVER=\\ALASKA\VOL1"
LOCAL oSession := DacSession():new( cConnect )
IF !oSession:isConnected()
Alert( "Connection to server could not be established!" )
QUIT
ENDIF
// Activate compatible locking scheme
SET AXS LOCKING OFF
/*
* Operations...
*/
// Activate proprietary locking scheme.
SET AXS LOCKING ON
/*
* Operations...
*/
// Close databases and disconnect from server.
DbCloseAll()
oSession:disconnect()
RETURN
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.