<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Creating an ODBC data source name (DSN)</title>
    <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/</link>
    <description>Recent content in Creating an ODBC data source name (DSN) on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Connecting-To: Creating an ODBC DSN for Linux</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/creating-an-odbc-dsn-linux/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/creating-an-odbc-dsn-linux/</guid>
      <description>
        
        
        &lt;p&gt;You define DSN on Linux and other UNIX-like platforms in a text file. Your client&#39;s driver manager reads this file to determine how to connect to your Vertica database. The driver manager usually looks for the DSN definitions in two places:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;/etc/odbc.ini&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;~/.odbc.ini&lt;/code&gt; (a file named &lt;code&gt;.odbc.ini&lt;/code&gt; in the user&#39;s home directory)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Users must be able to read the &lt;code&gt;odbc.ini&lt;/code&gt; file in order to use it to connect to the database. If you use a global &lt;code&gt;odbc.ini&lt;/code&gt; file, consider creating a UNIX group with read access to the file. Then, add the users who need to use the DSN to this group.&lt;/p&gt;
&lt;p&gt;The structure of these files is the same—only their location differs. If both files are present, the &lt;code&gt;~/.odbc.ini&lt;/code&gt; file usually overrides the system-wide &lt;code&gt;/etc/odbc.ini&lt;/code&gt; file.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

See your ODBC driver manager&#39;s documentation for details on where these files should be located and any other requirements.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;odbcini-file-structure&#34;&gt;odbc.ini file structure&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;odbc.ini&lt;/code&gt; is a text file that contains two types of lines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Section definitions, which are text strings enclosed in square brackets.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Parameter definitions, which contain a parameter name, an equals sign (=), and then the parameter&#39;s value.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;admonition caution&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Caution&lt;/h4&gt;

The unixODBC driver manager supports parameter values of up to 1000 characters in &lt;code&gt;odbc.ini&lt;/code&gt;. If your parameter value is greater than 1000 characters (for example, OAuthAccessToken), you must pass it through a &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/setting-dsn-connection-properties/&#34;&gt;connection string&lt;/a&gt; rather than specifying it in &lt;code&gt;odbc.ini&lt;/code&gt;.

&lt;/div&gt;

&lt;p&gt;The first section of the file is always named [ODBC Data Sources], and contains a list of all the DSNs that the &lt;code&gt;odbc.ini&lt;/code&gt; file defines. The parameters in this section are the names of the DSNs, which appear as section definitions later in the file. The value is a text description of the DSN and has no function. For example, an &lt;code&gt;odbc.ini&lt;/code&gt; file that defines a single DSN named Vertica DSN could have this ODBC Data Sources section:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ODBC Data Sources]
VerticaDSN = &amp;#34;vmartdb&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Appearing after the ODBC data sources section are sections that define each DSN. The name of a DSN section must match one of the names defined in the ODBC Data Sources section.&lt;/p&gt;
&lt;h2 id=&#34;configuring-the-odbcini-file&#34;&gt;Configuring the odbc.ini file:&lt;/h2&gt;
&lt;p&gt;To create or edit the DSN definition file:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Using the text editor of your choice, open &lt;code&gt;odbc.ini&lt;/code&gt; or &lt;code&gt;~/.odbc.ini&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create an ODBC Data Sources section and define a parameter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Whose name is the name of the DSN you want to create&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Whose value is a description of the DSN&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, to create a DSN named VMart, you would enter:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ODBC Data Sources]
VMart = &amp;#34;VMart database on Vertica&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a section whose name matches the DSN name you defined in step 2. In this section, you add parameters that define the DSN&#39;s settings. The most commonly-defined parameters are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt; – Additional information about the data source.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Driver&lt;/strong&gt; – The location and designation of the Vertica ODBC driver, or the name of a driver defined in the &lt;code&gt;odbcinst.ini&lt;/code&gt; file (see below). For future compatibility, use the name of the symbolic link in the library directory, rather than the library file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;(
&lt;code&gt;/opt/vertica/lib&lt;/code&gt;, on 32-bit clients&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;/opt/vertica/lib64&lt;/code&gt;, on 64-bit clients&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, the symbolic link for the 64-bit ODBC driver library is:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/opt/vertica/lib64/libverticaodbc.so
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The symbolic link always points to the most up-to-date version of the Vertica client ODBC library. Use this link so that you do not need to update all of your DSNs when you update your client drivers.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Database&lt;/strong&gt; – The name of the database running on the server. This example uses vmartdb for the vmartdb.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;ServerName&lt;/strong&gt; — The name of the server where Vertica is installed. Use localhost if Vertica is installed on the same machine.&lt;/p&gt;
&lt;p&gt;You can provide an IPv4 address, IPv6 address, or host name.&lt;/p&gt;
&lt;p&gt;In mixed IPv4/IPv6 networks, the DNS server configuration determines which IP version address is sent first. Use the &lt;code&gt;PreferredAddressFamily&lt;/code&gt; option to force the connection to use either IPv4 or IPv6.&lt;/p&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;UID&lt;/strong&gt; — Either the database superuser (same name as database administrator account) or a user that the superuser has created and granted privileges. This example uses the user name dbadmin.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;PWD&lt;/strong&gt; —The password for the specified user name. This example leaves the password field blank.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Port&lt;/strong&gt; — The port number on which Vertica listens for ODBC connections. For example, 5433.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;ConnSettings&lt;/strong&gt; — Can contain SQL commands separated by a semicolon. These commands can be run immediately after connecting to the server.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;SSLKeyFile&lt;/strong&gt; — The file path and name of the client&#39;s private key. This file can reside anywhere on the system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;SSLCertFile&lt;/strong&gt; —The file path and name of the client&#39;s public certificate. This file can reside anywhere on the system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Locale&lt;/strong&gt; — The default locale used for the session. By default, the locale for the database is: en_US@collation=binary (English as in the United States of America). Specify the locale as an ICU Locale. See the ICU User Guide (&lt;a href=&#34;http://userguide.icu-project.org/locale&#34;&gt;http://userguide.icu-project.org/locale&lt;/a&gt;) for a complete list of parameters that can be used to specify a locale.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;PreferredAddressFamily&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;The IP version to use if the client and server have both IPv4 and IPv6 addresses and you have provided a host name, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ipv4&lt;/code&gt;: Connect to the server using IPv4.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ipv6&lt;/code&gt;: Connect to the server using IPv6.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;none&lt;/code&gt;: Use the IP address provided by the DNS server.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[VMart]
Description = Vmart Database
Driver = /opt/vertica/lib64/libverticaodbc.so
Database = vmartdb
Servername = host01
UID = dbadmin
PWD =
Port = 5433
ConnSettings =
AutoCommit = 0
SSLKeyFile = /home/dbadmin/client.key
SSLCertFile = /home/dbadmin/client.crt
Locale = en_US@collation=binary
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/odbc-dsn-connection-properties/&#34;&gt;ODBC DSN connection properties&lt;/a&gt; for a complete list of parameters including Vertica-specific ones.&lt;/p&gt;
&lt;h2 id=&#34;using-an-odbcinstini-file&#34;&gt;Using an odbcinst.ini file&lt;/h2&gt;
&lt;p&gt;Instead of giving the path of the ODBC driver library in your DSN definitions, you can use the name of a driver defined in the &lt;code&gt;odbcinst.ini&lt;/code&gt; file. This method is useful method if you have many DSNs and often need to update them to point to new driver libraries. It also allows you to set some additional ODBC parameters, such as the threading model.&lt;/p&gt;
&lt;p&gt;Just as in the &lt;code&gt;odbc.ini&lt;/code&gt; file, &lt;code&gt;odbcinst.ini&lt;/code&gt; has sections. Each section defines an ODBC driver that can be referenced in the &lt;code&gt;odbc.ini&lt;/code&gt; files.&lt;/p&gt;
&lt;p&gt;In a section, you can define the following parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;— Additional information about the data source.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Driver&lt;/strong&gt;— The location and designation of the Vertica ODBC driver, such as 
&lt;code&gt;/opt/vertica/lib64/libverticaodbc.so&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Vertica]
Description = Vertica ODBC Driver
Driver = /opt/vertica/lib64/libverticaodbc.so
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then, in your &lt;code&gt;odbc.ini&lt;/code&gt; file, use the name of the section you created in the &lt;code&gt;odbcinst.ini&lt;/code&gt; file that describes the driver you want to use. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[VMart]
Description = Vertica Vmart database
Driver = Vertica
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you are using the unixODBC driver manager, you should also add an ODBC section to override its standard threading settings. By default, unixODBC serializes all SQL calls through ODBC, which prevents multiple parallel loads. To change this default behavior, add the following to your &lt;code&gt;odbcinst.ini&lt;/code&gt; file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ODBC]
Threading = 1
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;configuring-additional-odbc-settings&#34;&gt;Configuring additional ODBC settings&lt;/h2&gt;
&lt;p&gt;On Linux and UNIX systems, you need to configure some additional driver settings before you can use your DSN. See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/&#34;&gt;ODBC driver settings&lt;/a&gt; for details.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Creating an ODBC DSN for windows clients</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/windows-dsn/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/windows-dsn/</guid>
      <description>
        
        
        &lt;p&gt;To create a DSN for Microsoft Windows clients, you must perform the following tasks:&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Creating an ODBC DSN for macOS clients</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/mac-dsn/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/mac-dsn/</guid>
      <description>
        
        
        &lt;p&gt;You can use the Vertica ODBC Driver to set up an ODBC DSN. This procedure assumes that the driver is already installed, as described in &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/installing-odbc/&#34;&gt;Installing the ODBC client driver&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;setting-up-a-dsn&#34;&gt;Setting up a DSN&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Using your web browser, download and install the Apple &lt;a href=&#34;http://support.apple.com/kb/DL895&#34;&gt;ODBC Administrator Tool&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Locate and open the ODBC Administrator Tool after installation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Navigate to &lt;strong&gt;Finder&lt;/strong&gt; &amp;gt; &lt;strong&gt;Applications&lt;/strong&gt; &amp;gt; &lt;strong&gt;Utilities&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the ODBC Administrator Tool.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click the &lt;strong&gt;Drivers&lt;/strong&gt; tab, and verify that the Vertica driver is installed. &lt;br&gt;
&lt;img src=&#34;../../../../../../../images/screen-shot-2015-02-20-at-2-23-32-pm.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Specify if you want all users on your client system to be able to access the DSN for the Vertica database:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If you want all users to have access, then click the &lt;strong&gt;System DSN&lt;/strong&gt; tab.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Otherwise, click the &lt;strong&gt;User DSN&lt;/strong&gt; tab to create a DSN that is only usable by your Macintosh user account.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Add...&lt;/strong&gt; to create a new DSN to connect to the Vertica database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scroll through the list of drivers in the Choose A Driver dialog box to locate the Vertica driver. Select the driver, and then click &lt;strong&gt;OK&lt;/strong&gt;. A dialog box opens that requests DSN parameter information.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the dialog box, enter the &lt;strong&gt;Data Source Name (DSN)&lt;/strong&gt; and an optional &lt;strong&gt;Description&lt;/strong&gt;. To do so, click &lt;strong&gt;Add&lt;/strong&gt; to insert keywords (parameters) and values that define the settings needed to connect to your database, including database name, server host, database user name (such as dbadamin), database password, and port. Then, click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the ODBC Administrator dialog box, click &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/odbc-dsn-connection-properties/&#34;&gt;ODBC DSN connection properties&lt;/a&gt; for a complete list of parameters including those specific to Vertica.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After configuring the ODBC Administrator Tool, you may need to configure additional driver settings before you can use your DSN, depending on your environment. See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/&#34;&gt;Additional ODBC Driver Configuration Settings&lt;/a&gt; for details.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

To test your connection, use the &lt;code&gt;iodbctest&lt;/code&gt; utility. For details, see &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/mac-dsn/testing-an-odbc-dsn-using-iodbctest/&#34;&gt;Testing an ODBC DSN using iodbctest&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: ODBC DSN connection properties</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/odbc-dsn-connection-properties/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/odbc-dsn-connection-properties/</guid>
      <description>
        
        
        &lt;p&gt;The following tables list the connection properties you can set in the DSNs for use with Vertica&#39;s ODBC driver. To set these parameters, see &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/setting-dsn-connection-properties/&#34;&gt;Setting DSN connection properties&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;required-connection-properties&#34;&gt;Required connection properties&lt;/h2&gt;
&lt;p&gt;These connection properties are the minimum required to create a functioning DSN.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

If you use a host name (Servername) whose DNS entry resolves to multiple IP addresses, the client attempts to connect to the first IP address returned by the DNS. If a connection cannot be made to the first address, the client attempts to connect to the second, then the third, continuing until it either connects successfully or runs out of addresses.

&lt;/div&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Driver&lt;/td&gt; 

&lt;td &gt;


The file path and name of the driver used.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Database&lt;/td&gt; 

&lt;td &gt;


The name of the database running on the server.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Servername&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;The host name or IP address of any active node in a Vertica cluster.&lt;/p&gt;
&lt;p&gt;You can provide an IPv4 address, IPv6 address, or host name.&lt;/p&gt;
&lt;p&gt;In mixed IPv4/IPv6 networks, the DNS server configuration determines which IP version address is sent first. Use the &lt;code&gt;PreferredAddressFamily&lt;/code&gt; option to force the connection to use either IPv4 or IPv6.&lt;/p&gt;
&lt;p&gt;You can also use the aliases &amp;quot;server&amp;quot; and &amp;quot;host&amp;quot; for this property.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


UID&lt;/td&gt; 

&lt;td &gt;


The database username.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;optional-properties&#34;&gt;Optional properties&lt;/h2&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Port&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;The port number on which Vertica listens for ODBC connections.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; 5433&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


PWD&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;The password for the specified user name. You may insert an empty string to leave this property blank.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; None, login only succeeds if the user does not have a password set.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
PreferredAddressFamily&lt;/td&gt; 

&lt;td &gt;
















&lt;p&gt;The IP version to use if the client and server have both IPv4 and IPv6 addresses and you have provided a host name, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ipv4&lt;/code&gt;: Connect to the server using IPv4.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ipv6&lt;/code&gt;: Connect to the server using IPv6.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;none&lt;/code&gt;: Use the IP address provided by the DNS server.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; none&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;advanced-settings&#34;&gt;Advanced settings&lt;/h2&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


AutoCommit&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;A Boolean value that controls whether the driver automatically commits transactions after executing a DML statement.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; true&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
BackupServerNode&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;A string containing the host name or IP address that client libraries can try to connect to if the host specified in ServerName is unreachable. Connection attempts continue until successful or until the list of server nodes is exhausted.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Valid values:&lt;/strong&gt; Comma-separated list of servers optionally followed by a colon and port number.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
ConnectionLoadBalance&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;A Boolean value that indicates whether the connection can be redirected to a host in the database other than the ServerNode.&lt;/p&gt;
&lt;p&gt;This affects the connection only if the load balancing. is set to something other than &amp;quot;none&amp;quot;. When the node differs from the node the client is connected to, the client disconnects and reconnects to the targeted node. See &lt;a href=&#34;../../../../../../../en/admin/managing-client-connections/connection-load-balancing/about-native-connection-load-balancing/&#34;&gt;About Native Connection Load Balancing&lt;/a&gt; in the Administration Guide.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


ConnSettings&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;A string containing SQL commands that the driver should execute immediately after connecting to the server. You can use this property to configure the connection, such as setting a schema search path.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reserved symbol:&lt;/strong&gt; In the connection string semicolon (&lt;code&gt;;&lt;/code&gt;) is a reserved symbol. To set multiple properties as part of ConnSettings properties, use &lt;code&gt;%3B&lt;/code&gt; as the comma delimiter, and &lt;code&gt;+&lt;/code&gt; (plus) for spaces.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


ConnectionTimeout&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;The number of seconds to wait for a request to complete before returning to the client application. This is equivalent to the &lt;a href=&#34;https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetconnectattr-function&#34;&gt;SQL_ATTR_CONNECTION_TIMEOUT&lt;/a&gt; parameter in the ODBC API.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: 0 (no timeout)&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
ConvertSquareBracketIdentifiers&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Controls whether square-bracket query identifiers are converted to a double quote identifier for compatibility when making queries to a Vertica database.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


DirectBatchInsert&lt;/td&gt; 

&lt;td &gt;


Deprecated, always set to true.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


DriverStringConversions&lt;/td&gt; 

&lt;td &gt;












&lt;p&gt;Controls whether the ODBC driver performs type conversions on strings sent between the ODBC driver and the database. Possible values are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;NONE: No conversion in either direction. This results in the highest performance.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INPUT: Strings sent from the client to the server are converted, but strings sent from the server to the client are not.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;OUTPUT: Strings sent by the server to the client are converted, but strings sent from the client to the server are not.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;BOTH: Strings are converted in both directions.&lt;br /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; OUTPUT&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Locale&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;The locale used for the session. Specify the locale as an ICU Locale.&lt;/p&gt;
&lt;p&gt;**See **the &lt;a href=&#34;http://userguide.icu-project.org/locale&#34;&gt;ICU User Guide&lt;/a&gt; for a complete list of properties that can be used to specify a locale.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; &lt;code&gt;en_US@collation=binary&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


PromptOnNoPassword&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;[Windows only] Controls whether users are prompted to enter a password, if none is supplied by the connection string or DSN used to connect to Vertica. See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/accessing/ccpp/prompting-windows-users-passwords/&#34;&gt;Prompting windows users for passwords&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


ReadOnly&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;A true or false value that controls whether the connection can read data only from Vertica.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


ResultBufferSize&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Size of memory buffer for the large result sets in streaming mode. A value of 0 means ResultBufferSize is turned off.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; 131072 (128KB)&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


TransactionIsolation&lt;/td&gt; 

&lt;td &gt;












&lt;p&gt;Sets the transaction isolation for the connection, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Read Committed&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Serializable&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Server Default&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../../../en/admin/configuring-db/config-procedure/change-transaction-isolation-levels/&#34;&gt;Changing Transaction Isolation Levels&lt;/a&gt; for an explanation of transaction isolation.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; Server Default&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;identification&#34;&gt;Identification&lt;/h2&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt; 

&lt;th &gt;
Standard/ Vertica&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Description&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Description for the DSN entry.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Required?&lt;/strong&gt; No&lt;/p&gt;
&lt;p&gt;Insert an empty string to leave the description empty.&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Standard&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Label / SessionLabel&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Sets a label for the connection on the server. This value appears in the client_label column of the &lt;a href=&#34;../../../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/&#34;&gt;V_MONITOR.SESSIONS&lt;/a&gt; system table.&lt;/p&gt;
&lt;p&gt;Label and SessionLabel are synonyms and can be used interchangeably.&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;oauth-connection-properties&#34;&gt;OAuth connection properties&lt;/h2&gt;
&lt;p&gt;The following connection properties pertain to &lt;a href=&#34;../../../../../../../en/security-and-authentication/client-authentication/oauth-2-0-authentication/configuring-oauth-authentication/&#34;&gt;OAuth&lt;/a&gt; in ODBC.&lt;/p&gt;
&lt;p&gt;
&lt;div class=&#34;admonition caution&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Caution&lt;/h4&gt;

The unixODBC driver manager supports parameter values of up to 1000 characters in &lt;code&gt;odbc.ini&lt;/code&gt;. If your parameter value is greater than 1000 characters (for example, OAuthAccessToken), you must pass it through a &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/setting-dsn-connection-properties/&#34;&gt;connection string&lt;/a&gt; rather than specifying it in &lt;code&gt;odbc.ini&lt;/code&gt;.

&lt;/div&gt;


&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
OAuthAccessToken&lt;/td&gt; 

&lt;td &gt;


Required if oauthrefreshtoken is unspecified, an OAuth token that authorizes a user to the database.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
OAuthRefreshToken&lt;/td&gt; 

&lt;td &gt;















&lt;p&gt;Required if oauthaccesstoken is unspecified, allows a user to refresh and obtain a new oauthaccesstoken when their old one expires.&lt;/p&gt;
&lt;p&gt;If you set this parameter, you must also set the following refresh properties in oauthjsonconfig:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;oauthrefreshtoken&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthdiscoveryurl or oauthtokenurl&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthclientid&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthclientsecret&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In cases where introspection fails (e.g. when the access token expires), Vertica responds to the request with an error. If introspection fails and OAuthRefreshToken is specified, the driver attempts to refresh and silently retrieve a new access token. Otherwise, the driver passes error to the client application.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
OAuthJsonConfig&lt;/td&gt; 

&lt;td &gt;


























































&lt;p&gt;A JSON string or file that lets you set the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;oauthclientid: The client ID of the client application registered in the identity provider.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthclientsecret: The client secret of the client application registered in the identity provider.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthtokenurl: The endpoint to which token refresh requests are sent. The format for this depends on your provider. For examples, see the &lt;a href=&#34;https://www.keycloak.org/docs/latest/securing_apps/#token-endpoint&#34;&gt;Keycloak&lt;/a&gt; and &lt;a href=&#34;https://developer.okta.com/docs/reference/api/oidc/#token&#34;&gt;Okta&lt;/a&gt; documentation.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthdiscoveryurl: Also known as the &lt;a href=&#34;https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationRequest&#34;&gt;OpenID Provider Configuration Document&lt;/a&gt;. This parameter is only supported for Keycloak. For other identity providers like Okta, set the oauthtokenurl instead.&lt;/p&gt;
&lt;p&gt;If both the oauthtokenurl and oauthdiscoveryurl are set, the oauthdiscoveryurl takes precedence.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthscope: The requested OAuth scopes, delimited with spaces. These scopes define the extent of access to the resource server (in this case, Vertica) granted to the client by the access token. For details, see the &lt;a href=&#34;https://www.oauth.com/oauth2-servers/scope/defining-scopes/&#34;&gt;OAuth documentation&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;oauthvalidatehostname: Boolean, whether to verify the subjectAltName of the identity provider host. If enabled, the IP address or hostname must be set as the subjectAltName in its certificate. Hostname verification is enabled by default.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Unlike oauthaccesstoken or oauthrefreshtoken, which must be set programmatically by the client when they attempt to connect, the same oauthjsonconfig can be reused between connections to the database.&lt;/p&gt;
&lt;p&gt;For example, to set it as a &lt;code&gt;JSON&lt;/code&gt; string in &lt;code&gt;ODBC.ini&lt;/code&gt; as part of the DSN:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;OAuthJsonConfig = {
    &amp;#34;oauthdiscoveryurl&amp;#34;: &amp;#34;http://203.0.113.1:8080/realms/myrealm/.well-known/openid-configuration&amp;#34;,
    &amp;#34;oauthtokenurl&amp;#34;: &amp;#34;http://203.0.113.1:8080/auth/realms/myrealm/protocol/openid-connect/token&amp;#34;,
    &amp;#34;oauthclientid&amp;#34;: &amp;#34;vertica&amp;#34;,
    &amp;#34;oauthclientsecret&amp;#34;: &amp;#34;eba23135-834f-1341-aa34-bf9345713dfc&amp;#34;,
    &amp;#34;oauthscope&amp;#34;: &amp;#34;offline_access openid&amp;#34;,
    &amp;#34;oauthvalidatehostname&amp;#34;: &amp;#34;false&amp;#34;
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To set it inside separate a &lt;code&gt;JSON&lt;/code&gt; configuration file:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;oauth_config.json&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;{
    &amp;#34;oauthdiscoveryurl&amp;#34;: &amp;#34;http://203.0.113.1:8080/realms/myrealm/.well-known/openid-configuration&amp;#34;,
    &amp;#34;oauthtokenurl&amp;#34;: &amp;#34;http://203.0.113.1:8080/auth/realms/myrealm/protocol/openid-connect/token&amp;#34;,
    &amp;#34;oauthclientid&amp;#34;: &amp;#34;vertica&amp;#34;,
    &amp;#34;oauthclientsecret&amp;#34;: &amp;#34;eba23135-834f-1341-aa34-bf9345713dfc&amp;#34;,
    &amp;#34;oauthscope&amp;#34;: &amp;#34;offline_access openid&amp;#34;,
    &amp;#34;oauthvalidatehostname&amp;#34;: &amp;#34;false&amp;#34;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Specify &lt;code&gt;oauth_config.json&lt;/code&gt; inside &lt;code&gt;ODBC.ini&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;OAuthJsonconfig = {&amp;quot;oauthjsonfile&amp;quot;: &amp;quot;/path/to/oauth_config.json&amp;quot;}&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;encryption&#34;&gt;Encryption&lt;/h2&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt; 

&lt;th &gt;
Standard/ Vertica&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


SSLMode&lt;/td&gt; 

&lt;td &gt;













&lt;p&gt;Controls whether the connection to the database uses SSL encryption. Valid values follow. For descriptions of these values, refer to
Configuring SSL for ODBC Clients.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;require&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;prefer&lt;/code&gt;: Prefers that the server use SSL. The client first attempts to connect using SSL. If that attempt fails, the client attempts to connect again over a clear channel.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;allow&lt;/code&gt;: Makes a connection to the server whether the server uses SSL or not. The first connection attempt to the database is attempted over a clear channel. If that fails, a second connection is attempted over SSL.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;disable&lt;/code&gt;: Never connects to the server using SSL. Typically, you use this setting for troubleshooting.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; prefer&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
SSLCertFile&lt;/td&gt; 

&lt;td &gt;
The absolute path of the client&#39;s public certificate file. This file can reside anywhere on the system.&lt;/td&gt; 

&lt;td &gt;
Vertica&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
SSLKeyFile&lt;/td&gt; 

&lt;td &gt;
The absolute path to the client&#39;s private key file. This file can reside anywhere on the system.&lt;/td&gt; 

&lt;td &gt;
Vertica&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;third-party-compatibility&#34;&gt;Third-party compatibility&lt;/h2&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt; 

&lt;th &gt;
Default&lt;/th&gt; 

&lt;th &gt;
Standard/ Vertica&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;a name=&#34;ColumnsAsChar&#34;&gt;&lt;/a&gt;ColumnsAsChar&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Specifies how character column types are reported when the driver is in Unicode mode. When set to false, the ODBC driver reports the data type of character columns as WCHAR. If you set ColumnsAsChar to true, the driver identifies character column as CHAR.&lt;/p&gt;
&lt;p&gt;You typically use this setting for compatibility with some third-party clients.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


&lt;code&gt;false&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


ThreePartNaming&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;A Boolean value that controls how catalog names are interpreted by the driver. When this value is false, the driver reports that catalog names are not supported. When catalog names are not supported, they cannot be used as a filter in database metadata API calls. In this case, the driver returns NULL as the catalog name in all driver metadata results.&lt;/p&gt;
&lt;p&gt;When this value is true, catalog names can be used as a filter in database metadata API calls. In this case, the driver returns the database name as the catalog name in metadata results. Some third-party applications assume a certain catalog behavior and do not work properly with the default values. Enable this option if your client software expects to get the catalog name from the database metadata and use it as part of a three-part name reference.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false for UNIX, true for Windows&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;&lt;code&gt;false&lt;/code&gt; (UNIX)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;true&lt;/code&gt; (Window)&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
EnforceBatchInsertNullConstraints&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Prevents NULL values from being loaded into columns with a NOT NULL constraint during batch inserts. When this value is set to true, batch inserts roll back when NULL values are inserted in to columns with NOT NULL constraints. When this value is set to false, batch insert behavior is unchanged.&lt;/p&gt;
&lt;p&gt;Vertica recommends only using this property with SAP Data Services as it could negatively impact database performance.&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;false&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Vertica&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;kerberos-connection-properties&#34;&gt;Kerberos connection properties&lt;/h2&gt;
&lt;p&gt;Use the following properties for client authentication using Kerberos.

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Property&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt; 

&lt;th &gt;
Standard/ Vertica&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


KerberosServiceName&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Provides the service name portion of the Vertica Kerberos principal; for example: &lt;code&gt;vertichost@EXAMPLE.COM&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; vertica&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


KerberosHostname&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;Provides the instance or host name portion of the Vertica Kerberos principal; for example: &lt;code&gt;verticaosEXAMPLE.COM&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; Value specified in the servername connection string property&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;


Vertica&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/&#34;&gt;ODBC driver settings&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Setting DSN connection properties</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/setting-dsn-connection-properties/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/setting-dsn-connection-properties/</guid>
      <description>
        
        
        &lt;p&gt;The properties in the following tables are common for all user and system DSN entries. The examples provided are for Windows clients.&lt;/p&gt;
&lt;p&gt;To edit DSN properties:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;On UNIX and Linux client platforms, you can edit the &lt;code&gt;odbc.ini&lt;/code&gt; file. The location of this file is specific to the driver manager. See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/creating-an-odbc-dsn-linux/&#34;&gt;Creating an ODBC DSN for Linux&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On Windows client platforms, you can edit some DSN properties using the Vertica ODBC client driver interface. See &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/windows-dsn/&#34;&gt;Creating an ODBC DSN for windows clients&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can also edit the DSN properties directly by opening the DSN entry in the Windows registry (for example, at &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\&lt;/code&gt;&lt;em&gt;&lt;code&gt;DSNname&lt;/code&gt;&lt;/em&gt;). Directly editing the registry can be risky, so you should only use this method for properties that cannot be set through the ODBC driver&#39;s user interface, or via your client code.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can set properties in the connection string when opening a connection using the &lt;code&gt;SQLDriverConnect()&lt;/code&gt; function:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlRet = SQLDriverConnect(sql_hDBC, 0, (SQLCHAR*)&amp;#34;DSN=&lt;span class=&#34;code-variable&#34;&gt;DSNName&lt;/span&gt;;Locale=en_GB@collation=binary&amp;#34;, SQL_NTS, szDNS, 1024,&amp;amp;nSize, SQL_DRIVER_NOPROMPT);
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

&lt;p&gt;In the connection string &#39;;&#39; is a reserved symbol. If you need to set multiple properties as part of the ConnSettings property use &#39;%3B&#39; in place of &#39;;&#39;. Also use &#39;+&#39; instead of spaces.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlRet = SQLDriverConnect(sql_hDBC, 0, (SQLCHAR*)&amp;#34;DSN=Vertica SQL;ConnSettings=set+search_path+to+a,b,c%3Bset+locale=ch;SSLMode=prefer&amp;#34;, SQL_NTS,
szDNS, 1024,&amp;amp;nSize, SQL_DRIVER_NOPROMPT);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Your client code can retrieve DSN property values after a connection has been made to Vertica using the &lt;code&gt;SQLGetConnectAttr()&lt;/code&gt; and &lt;code&gt;SQLGetStmtAttr()&lt;/code&gt; API calls. Some properties can be set and using &lt;code&gt;SQLSetConnectAttr()&lt;/code&gt; and &lt;code&gt;SQLSetStmtAttr()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For details of the list of properties specific to Vertica see &lt;a href=&#34;../../../../../../../en/connecting-to/client-libraries/accessing/ccpp/odbc-header-file/&#34;&gt;ODBC Header Files specific to Vertica&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
