Configuring Connection Strings

When you are programming CUBRID ODBC, you can write connection strings as follows:

Item

Example

Description

Driver

CUBRID  Driver

Driver name

UID

PUBLIC

User ID

PWD

xxx

Password

FETCH_SIZE

100

Fetch size

PORT

33000

Broker port number

SERVER

127.0.0.1

IP address or host name of a CUBRID Broker server

DB_NAME

demodb

Database name

DESCRIPTION

cubrid_test

Description

CHARSET

utf-8

Character set

The following example shows how to use connecting strings above.

"DRIVER=CUBRID Driver;UID=PUBLIC;PWD=xxx;FETCH_SIZE=100;PORT=33000;SERVER=127.0.0.1;DB_NAME=demodb;DESCRIPTION=cubrid_test;CHARSET=utf-8"

Remark
Because a semi-colon is used as a separator in URL string, it is not allowed to include a semi-colon for password (PWD) when specifying it in connection string.