The following table lists the connection string parameters for NetSuite.
Parameter | Description |
---|---|
|
Use the parameter, along with your User ID and Password, to authenticate yourself to NetSuite. For information on getting an Account ID, see Obtaining Account ID and Application ID. |
|
Use the parameter to specify the local time zone for your account by selecting an appropriate option in the menu. |
|
This parameter specifies the API protocol version used for the connection. The following parameter values are assigned by default depending on the selected authentication type:
|
|
Use the option to specify the authentication type: Basic, Token-Based, or OAuth. The default value is Token-Based. |
Basic Authentication |
|
|
Use the parameter to specify your User ID, Password, and Application ID. For information on obtaining a NetSuite Application ID, see Obtaining Account ID and Application ID. |
|
Use the parameter to specify the password for the User ID you are using. |
|
Use the parameter to specify your Role ID, which is the InternalId of a role that is used to log in to NetSuite. If no Role ID is specified, the user's default role will be used. A Role ID may be obtained by selecting Setup > Integration > Manage Integrations > New in your NetSuite account. |
|
Use the parameter to specify your unique User ID when logging in. |
Token-Based Authentication |
|
|
Use the parameter to specify a Consumer Key and Consumer Secret, which are private keys generated when creating an app in a NetSuite account. For instructions, see Connecting to NetSuite Using Token-Based Authentication. |
|
|
|
Use the option to specify your Token ID. |
|
Use the option to specify your Token Secret. |
OAuth |
|
|
Use the parameter to specify a Client ID and Client Secret, which are private keys generated when creating an app in a NetSuite account. For instructions, see Connecting to NetSuite Using OAuth 2.0 Authentication. |
|
|
|
Use the parameter to indicate the refresh token that authorizes access to your NetSuite data. To save your refresh token in DSN Settings, select the Save Token checkbox. |
Proxy Settings |
|
|
The proxy hostname or IP address. |
|
The port number used to connect to a proxy server. |
|
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. |
|
|
|
This is a configurable parameter, that allows caching and storing metadata in a temporary database. The parameter settings specify the frequency of resetting cached metadata, ranging from 1 hour...to 1 month.
|
|
Replaces the |
|
The time (in seconds) to wait for a connection to open before terminating an attempt. The default value is 60. |
|
This is 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. |
|
Used to set the behavior corresponding to the ODBC specification version that a third-party tool expects. The behavior of the ODBC driver can be changed by setting a value for the SQL_ATTR_ODBC_VERSION attribute by calling the SQLSetEnvAttr function. Some third-party tools expect the driver to exhibit ODBC 2.x behavior, but they forget to call SQLSetEnvAttr with the specified version or pass an incorrect value there. In this case, the required behavior can be explicitly specified in the Connection String by setting the ODBC Behavior parameter. The possible values are:
|
|
Upon disabling the parameter, the SQL queries will be sent and processed in NetSuite as is. Disabling the parameter will improve performance when executing queries with LIMIT from tables with vast amounts of entries. However, disabling the parameter will limit the SQL query syntax; thus, some queries might not be executed. |
|
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. |
|
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 when they do not actually need this information. Note that enabling the option may degrade the performance of data access operations. The default value is False. |
|
Sets the string value types returned by the driver as Default, Ansi, or Unicode.
The parameter value should be changed if any third-party tool supports only Ansi string types or Unicode ones. |
|
Allows accessing a custom table. |
|
Allows accessing custom table fields. |
|
Allows accessing custom lists. |
DRIVER={Devart ODBC Driver for NetSuite};User [email protected];Password=da85au;Account ID=DTDSVR1809345;Application ID=4B7E39KC-S276-5647-5D88-678GP7972957 |
DRIVER={Devart ODBC Driver for NetSuite};User [email protected];Password=da85au;Account ID=DTDSVR1809345;Application ID=4B7E39KC-S276-5647-5D88-678GP7972957 |
DRIVER={Devart ODBC Driver for NetSuite};Authentication Type=TokenBased;User ID=my_user_id;Account Id=my_account_id;Role Id=my_role_id;Application Id=my_application_id;Consumer Key=my_consumer_id;Consumer Secret=my_consumer_secret;Token Id=my_token_id;Token Secret=my_token_secret |