ODBC Driver for SQLite

Connection String Options - SQLite ODBC Driver

SQLite Connection Options

The following table describes the options that you can include in the connection string for SQLite:

Option Description


Used to set the path to the SQLite3 client library. E.g., C:\Windows\System32\sqlite3.dll


Used to specify the name of the database to be used once a connection is open.


Used to connect to the database directly without using SQLite3 client library.


Specifies the encryption algorithm that will be used to connect to an encrypted database. The attribute value has to be one of the following according to supported encryption algorithms: TripleDES, Blowfish, AES128, AES192, AES256, Cast128, RC4.


Specifies the encryption key that will be used to encrypt a previously connected unencrypted database.

Advanced Settings

Option Description

Allow NULL strings

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.

Empty strings as NULL

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 will be returned as SQL_CHAR, SQL_VARCHAR and SLQ_LONGVARCHAR.
  • Unicode - all string types will be returned as SQL_WCHAR, SQL_WVARCHAR and SLQ_WLONGVARCHAR.

The option value should be changed if any third-party tool supports only Ansi string types or Unicode ones.


Used to force connection to create a new database before opening a connection, if the database does not exist.


If False, fields of unknown data types (for example, the ifnull function result) are mapped to SQL_LONGVARCHAR. SQL_LONGVARCHAR is used because maximum length of values from such fields is unknown. If True, fields of unknown data types are mapped to SQL_VARCHAR. Size of fields is set to 8192. Values larger than this size are truncated. The default value is False.


Enables using local regional settings when converting numbers to string.


Enables using local regional settings when converting dates and times to string.

SQLite ODBC Connection String sample

DRIVER={Devart ODBC Driver for SQLite};Database=c:\test.db3

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