# Sample connection strings and syntax

This topic provides sample connection strings and syntax for common drivers. Note that although the examples include sensitive information in the connection strings, due to a known issue with sensitive information being exposed as plain text, such information (for example, passwords, tokens, and so on) should not be included in the connection string. Instead, it should be specified in the Encrypted Properties fields, as in the following example:

![Image of the connection string and encrypted properties.](https://help.qlik.com/en-US/cloud-services/Subsystems/ODBC_Connector_help/Content/Resources/Images/example-odbc-encryption.png)

Information noteIn future, this content will be available in Qlik Community only.

Connection string and syntax examples

| Name | Version | Connection String | Database required | Schema required | Delimiter Start | Delimiter End | Syntax | Example |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| MariaDB | 3.01.17 | SERVER=&lt;SERVER&gt;; PORT=3306; DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; |  | No | ` | ` | SELECT ${COLUMN\_LIST}<br>FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Vera''s GODBC:Maria\_db\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD id,<br><br>numericcol, numericPrecisionOverflowcol, numericScaleOverflowcol, numericp34s0col, numericp34s20col;<br><br>[datatype\_numeric\_table]:[datatype\_numeric\_table]:<br><br>SELECT id,<br><br>numericcol, numericPrecisionOverflowcol, numericScaleOverflowcol, numericp34s0col, numericp34s20col<br><br>FROM `datatype_numeric_table`; |
| DB2 | 11.05.8000.317 | Server=&lt;servername&gt;;Port=50000;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; |  | Yes | " | " | SELECT ${COLUMN\_LIST}<br>FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 |  |
| Pivotal Greenplum | 7.10.06.455 | Server=&lt;servername&gt;;Port=5432;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; |  | Yes | " | " | SELECT ${COLUMN\_LIST}<br>FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Vera''s GODBC:Green\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD a,<br>b;<br><br>[bool]:<br>[bool]:<br><br>SELECT a,<br>b<br><br>FROM "datatypes\_automation".bool; |
| Sybase ASE | 22.00.8389 | Server=&lt;servername&gt;;Port=5000;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; |  |  | [ | ] | SELECT TOP ${COLUMN\_LIST}<br>FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Enterprise Connectors:Sybase\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD A,<br>B,<br>C;<br><br>[test\_table]:<br>[test\_table]:<br>SELECT A,<br>B,<br>C<br><br>FROM [test\_table]; |
| SAP HANA | 2.15.22.29501 | uid=&lt;username&gt;;pwd=&lt;password&gt;;SERVERNODE=&lt;server&gt;:30015; |  | Yes | " | " | SELECT TOP ${COLUMN\_LIST}<br>FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Vera''s GODBC:Saphana\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD ID,<br>DATECOL,<br>TIMECOL, SECONDDATECOL, TIMESTAMPCOL;<br><br>[Piggie\_Table\_4\_DateTime]:[Piggie\_Table\_4\_DateTime]:<br><br>SELECT ID,<br>DATECOL,<br>TIMECOL,<br>SECONDDATECOL, TIMESTAMPCOL<br><br>FROM "Z\_QLIK\_RnD"."Piggie\_Table\_4\_DateTime"; |
| MSSQL 17 (Custom) |  | Server=&lt;servername&gt;;Port=1433;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; | Yes | Yes | " | " | SELECT TOP ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} | LIB CONNECT TO 'Vera''s GODBC:MSSQLODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD id,<br>bitcol,<br>textcol,<br>ntextcol;<br><br>[datatype\_text]:<br>[datatype\_text]:<br><br>SELECT id,<br>bitcol,<br>textcol,<br>ntextcol<br><br>FROM Northwind.dbo."datatype\_text"; |
| Vertica (Custom) |  | Server=&lt;servername&gt;;Port=5433;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; | No | Yes | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'vertica\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD A,<br>B,<br>C,<br>D,<br>WHATT;<br><br>[new\_table]:<br>[new\_table]:<br><br>SELECT A,<br>B,<br>C,<br>D,<br>WHATT<br><br>FROM vmart."public"."new\_table"; |
| IBM Netezza (Custom) |  | DSN | Yes | Yes | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Vera''s GODBC:Neteza\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD A,<br>B;<br><br>[TEST]:<br>[TEST]:<br><br>SELECT A,<br>B<br><br>FROM TEST.TEST; |
| PostgreSQL (Custom) |  | Server=&lt;servername&gt;;Port=5432;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;;schema=&lt;schemaname&gt;; | Depends on the database configuration. | Depends on the database configuration. | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Vera''s GODBC:1postgreODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD id,<br>boolcol;<br><br>[datatypes\_bool]:<br>[datatypes\_bool]:<br><br>SELECT id,<br>boolcol<br><br>FROM "public"."datatypes\_bool"; |
| MySQL |  | Server=&lt;servername&gt;;Port=3306;DATABASE=&lt;DBNAME&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; | Depends on the database configuration. | Not supported. | ` | ` | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'mysql\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD id,<br>charcol,<br>charExtcol,<br>ncharcol,<br>ncharUnicol,<br>varcharcol,<br>varcharExtcol,<br>nvarcharcol,<br>nvarcharUnicol;<br><br>[datatype\_char\_table]:<br>[datatype\_char\_table]:<br><br>SELECT id,<br>charcol,<br>charExtcol,<br>ncharcol,<br>ncharUnicol,<br>varcharcol,<br>varcharExtcol,<br>nvarcharcol, nvarcharUnicol<br><br>FROM `datatype_char_table`; |
| Oracle (Custom) |  | DSN<br><br>connection string: pwd=ecPrivate123; |  | Yes | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} where ROWNUM &lt;= 50 |  |
| IBM Informix (Custom) |  | DSN<br><br>connection string: Delimident=Y; |  | Yes | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 |  |
| IBM DB2 for iSeries |  | System=&lt;servername&gt;;Port=3306;DBQ=&lt;DBQ&gt;;uid=&lt;username&gt;;pwd=&lt;password&gt;; |  | Yes | " | " | SELECT ${COLUMN\_LIST} FROM ${TABLE\_NAME} ${FILTER} LIMIT 50 | LIB CONNECT TO 'Enterprise Connectors:DBi\_ODBC\_(via\_Direct\_Access\_gateway)';<br><br>LOAD A,<br>B;<br><br>[TEST]:<br>[TEST]:<br><br>SELECT A,<br>B<br><br>FROM<br>DAN.TEST; |