Description

Returns an attribute or list of attributes from the database environment for the current database.

Syntax

Get_Env(attributelist)

Parameters

The Get_Env routine has the following parameter.

ParameterDescription
attributelistSpecifies one or more attribute identifiers. If an attribute identifier is invalid, no value is returned for that column.

A table of environment attributes immediately follows the description of this command. It lists the available attribute identifiers, attribute descriptions, and the data type or value that can be assigned to an attribute.

Environment attributes are listed in the following table.

Attribute IdentifierAttribute DescriptionAttribute Data Type or Value
1Default data volume.Valid volume identifier.
2Sort path.Valid drive\path.
3Transaction volume.Valid volume identifier.
4Default XREF stop list.Default stop word list.
5Seconds before index update.Integer.
6Update indexes before query.Boolean.
7Unlock all at commit.Boolean.
8Deadlock recheck (seconds).Integer.
9Transaction failure timeout.Integer.
10Consistency lock level.0 - 4.
 LevelDescription
 0No implicit locking.
 1Sets exclusive locks during updates for the duration of the update.
 2Sets exclusive locks during updates for the duration of each transaction.
 3Sets exclusive locks during updates for the duration of query.
 4Sets exclusive table lock during updates and shared table lock during queries for the duration of each transaction.
11Maximum allowable locks.Integer.
12Automatic transaction start.Boolean.
13Deadlock check (seconds).Integer.
14Network cache.Integer.
15Default active language set.Valid language set name.
16List of language sets to load.Valid language set names.
17Query case sensitivity.
ValueDescription
0Case sensitive.
1Case insensitive.
18TimeDate format.Valid OConv (DT) pattern.
19Suppress non-numeric errors.Boolean.
20Printer form height.Integer.
21Printer form width.Integer.
22SQL null display string.Literal string of text.
23Debugger.
ValueDescription
0Debugger disabled.
1Debugger enabled.
24Default folder for stored procedures.Folder name.
25Default I/O conversion.
ValueDescription
0No conversion performed.
1Convert and validate.
26Commit log storage volumeVolume name.
27Commit protection.
ValueDescription
0Commit unprotected.
1Commit protected.
28Deadlock resolution scheme.
ValueDescription
0Rollback "youngest" transaction.
1Rollback least active transaction.
29SQL implicit lock type.
ValueDescription
0Table lock.
1Row lock.
30Coordinated locking.
ValueDescription
0No coordinated locks.
1Table/row locks coordinated.

The $Insert record Environ_Constants defines these positions.

See also

Set_Env

Example

/* Returns the default data volume and stop list, and debugger information from the environment for the current database. */
 
attributelist = "1":@FM:"4":@FM:"23"
Get_Env(attributelist)
If Get_Status(ErrCodes) Then
       GoSub ErrorHandling
End
  • No labels