ODBC Driver for Google BigQuery

Connection String Options - ODBC Driver for Google BigQuery

BigQuery ODBC Connection String Options

The following table lists the connection string options for BigQuery.

Option Description

Project Id

The project ID is a unique identifier for a project.

DataSet Id

The dataset ID is a unique dataset name inside the project namespace.

Refresh Token

The refresh token that authorizes the driver to access your BigQuery data.

Proxy Settings

Option Description

Proxy Server

The proxy hostname or IP address.

Proxy Port

The proxy port.

Proxy User

The proxy username.

Proxy Password

The proxy password.

Advanced Settings

Option Description


Some parameters don't accept null values when retrieving metadata. If a third-party tool passes a null value to such a parameter, the driver returns an error. By default, these options are enabled for compatibility with such third-party tools.


Connection Timeout

The time (in seconds) to wait for a connection to open before terminating an attempt. The default value is 60.

ODBC Behavior Sets the behavior corresponding to the ODBC specification version expected by a third-party tool. The behavior of the ODBC driver can be changed by calling the SQLSetEnvAttr function to set the SQL_ATTR_ODBC_VERSION environment attribute. Some third-party tools expect the driver to exhibit ODBC 2.x behavior, but forget to call SQLSetEnvAttr with the needed version, or pass an incorrect value. In this case, the behavior can be explicitly set in the connection string.
The default value. ODBC behavior is determined by a third-party tool.
ODBC 2.x behavior is explicitly set.
ODBC 3.x behavior is explicitly set.

Primary Key Columns

Specifies a column or a set of comma-delimited columns that will be returned by the driver as primary keys for BigQuery tables. Google BigQuery has no primary key or unique constraints, which makes it impossible for some third-party tools to work with BigQuery tables correctly. The default column is id.


The time to wait for a query execution result before terminating and generating an error.


Enables the use of local regional settings when converting numbers to strings.


Enables the use of local regional settings when converting dates and times to strings.

String Types Sets the string value types returned by the driver as Default, ANSI, or Unicode.
The driver defines the string types.
All string types are returned as SQL_CHAR, SQL_VARCHAR, and SQL_LONGVARCHAR.
All string types are returned as SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR.
Note: Set the option to Ansi or Unicode if your third-party tool supports only ANSI or Unicode strings.

UTC Dates

Specifies whether all the datetime values retrieved from the data source are returned as UTC values or converted to local time and whether the date values specified on the application side (e.g., in SQL statements) are considered UTC or local. The default value is false.

Sample BigQuery ODBC Connection String

DRIVER={Devart ODBC Driver for BigQuery};Project ID=myprojectid;DataSet Id=mydatasetid;Refresh Token=myrefreshtoken

© 2015-2022 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback