haver.usermode {Haver} | R Documentation

## Set or Query the User Mode

### Description

`haver.usermode` set and queries the user mode, a technical setting that determines how database locking is handled during database access. The default is single-user. You should not change this setting unless technical support asks you to do so.

### Usage

    haver.usermode()
    haver.usermode(mode)

### Arguments

`mode` | is a string. Specifies whether to use single-user mode or multi-user mode. `mode` must be one of ‘singleuser’ or ‘multiuser’, or any abbreviation thereof.

### Value

When no argument is supplied, a string that holds the current user mode setting; and `NULL` otherwise.

### User Modes

The default user mode, ‘singleuser’, gives you fast access to local databases. In rare cases, however, this database access method can interfere with other processes accessing the database, which can lead to problems. Therefore, an additional access method, multi-user mode, is available. It provides safe database access, but at the cost of a substantial slowdown in query speed.

The default setting is ‘singleuser’, i.e., the fast access version.

Do not change the user mode unless a technical support person asks you to do so.

The user mode is only relevant for local queries, not for DLX Direct queries (see section ‘DLX Direct: Accessing Databases Directly from a Haver Server’ in `Haver_introduction`).

The user mode setting is preserved in between R sessions.

### See Also

See Haver_package for all help entries related to the Haver package.

[Package Haver version 3.2 Index]