Connection Reference

Connection String Reference

The BEEM ODBC Driver accepts the following parameters in the connection string or DSN configuration. Most parameters are configured at install time — you typically only need to provide your credentials.

General parameters

ParameterRequiredDefaultDescription
MODENoDirectConnection mode: Direct or DataAPI
DATABASEYesDatabase name
BACKEND_DRIVERNoAmazon Redshift ODBC Driver (x64)Backend ODBC driver name (Direct mode only)

Direct mode parameters

ParameterRequiredDefaultDescription
SERVERYesBEEM Data Warehouse endpoint hostname
PORTNo5439Connection port
UIDNoDatabase username
PWDNoDatabase password
SSL_MODENoverify-fullSSL mode (disable, require, verify-ca, verify-full). Automatically downgraded to require when using a secure tunnel.

Tunnel parameters

These parameters configure the secure tunnel. They are typically configured at install time and do not need to be set manually. Only used in Direct mode.

ParameterRequiredDefaultDescription
SSH_HOSTYes (for tunnel)Tunnel host address
SSH_PORTNo22Tunnel port
SSH_USERYes (for tunnel)Tunnel username
SSH_AUTHNokeyAuthentication method: key or password
SSH_KEY_FILEYes (if SSH_AUTH=key)Path to private key file
SSH_PASSPHRASENoPassphrase for encrypted key
SSH_PASSWORDYes (if SSH_AUTH=password)Tunnel password
SSH_HOST_KEY_FPNoExpected host key fingerprint (SHA256:...). If not set, all host keys are accepted.
SSH_KEEPALIVENo30Keepalive interval in seconds

Data API mode parameters

These parameters are for environments without bastion or SSH network permissions (e.g. due to org policies). Data API mode connects via HTTPS instead of a secure tunnel.

ParameterRequiredDefaultDescription
CLUSTER_IDYes*Cluster identifier
WORKGROUP_NAMEYes*Serverless workgroup name
REGIONNous-east-1AWS region
AWS_PROFILENoAWS CLI profile name
AWS_ACCESS_KEY_IDNoAWS access key (explicit credentials)
AWS_SECRET_ACCESS_KEYNoAWS secret key
AWS_SESSION_TOKENNoAWS session token (temporary credentials)
AWS_ROLE_ARNNoIAM role to assume
SECRET_ARNNoSecrets Manager ARN for database credentials
POLL_INTERVAL_MSNo200Polling interval for async query execution
POLL_MAX_MSNo300000Maximum wait time for query results (5 minutes)

*Either CLUSTER_ID or WORKGROUP_NAME is required.

Examples

Direct mode (typical)

DRIVER={BEEM ODBC Driver};
MODE=Direct;
SERVER=your-beem-warehouse-endpoint;
PORT=5439;
DATABASE=analytics;
UID=admin;
PWD=secret

Server, database, and tunnel settings are typically configured at install time. You only need to provide credentials.

Direct mode without tunnel

DRIVER={BEEM ODBC Driver};
MODE=Direct;
SERVER=your-beem-warehouse-endpoint;
PORT=5439;
DATABASE=analytics;
UID=admin;
PWD=secret

Data API mode

DRIVER={BEEM ODBC Driver};
MODE=DataAPI;
DATABASE=analytics;
CLUSTER_ID=my-cluster;
REGION=us-east-1;
AWS_PROFILE=production

Data API mode with Serverless

DRIVER={BEEM ODBC Driver};
MODE=DataAPI;
DATABASE=analytics;
WORKGROUP_NAME=default;
REGION=us-east-1

Environment variables

VariableDescription
BEEM_ODBC_LOGPath to the log file. Defaults to C:\ODBC\BEEM\beem_odbc.log on Windows.
BEEM_ODBC_LOG_LEVELLog verbosity: error, info (default), or debug