The following table lists the connection string parameters for ODBC Driver for Google Sheets.
Parameter | Description |
---|---|
|
The refresh token that authorizes the driver to access your ODBC Driver for Google Sheets data. |
|
The name of the currently active google spreadsheet. You can use only one spreadsheet within one connection. |
|
The unique id of the active spreadsheet consisting of the specific string of characters. |
Proxy Settings |
|
|
The proxy hostname or IP address. |
|
The proxy port. |
|
The proxy username. |
|
The proxy password. |
Advanced Settings |
|
|
To retrieve metadata, not all parameters according to MSDN can accept a null value. If NULL, the driver should return an error. But some 3rd-party tools pass NULL to the parameters. These options should be enabled for compatibility with such tools. |
|
|
|
Use the option to specify whether the driver must return foreign keys. Retrieving metadata about foreign key constraints is a time-consuming operation; many third-party tools request foreign key metadata even whey they do not actually need this information. Note that enabling the option may degrade performance of data access operations. The default value is False. |
|
Use this parameter to define whether to use the columns from the first row of the table in Google Sheets. If there are no column names in the spreadsheet, then standard Excel column names will be displayed. |
|
The time (in seconds) to wait for a connection to open before terminating an attempt. The default value is 60. |
|
The time to wait for a query execution result before terminating and generating an error. |
|
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. |
|
Allows to specify the maximum text length in a cell. |
|
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. |
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 required version, or pass an incorrect value. In this case, the behavior can be explicitly set in the connection string by setting the ODBC Behavior parameter.
Default
The default value. The ODBC behavior is determined by a third-party tool.
Ver 2.x
ODBC 2.x behavior is explicitly set.
Ver 3.x
ODBC 3.x behavior is explicitly set.
|
String Types |
Sets the string value types returned by the driver as Default, ANSI, or Unicode.
Default
The driver defines the string types.
Ansi
All string types are returned as SQL_CHAR, SQL_VARCHAR, and SQL_LONGVARCHAR.
Unicode
All string types are returned as SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR.
Note: Set the parameter to
Ansi or Unicode if your third-party tool supports only ANSI or Unicode strings.
|
DRIVER={Devart ODBC Driver for ODBC Driver for Google Sheets};Refresh Token=myrefreshtoken;Spreadsheet=ODBC Docs Interlinking;Spreadsheet Id=1i69KtatwBKXFnIUNMmxv8uSpPSfqz2jhimJFhXcIZwI |