Connection strings for SQLite
.NET libraries for SQLite
SQLite.NET
Usage System.Data.SQLite.SQLiteConnection
Manufacturer SQLite
Basic
Version 2 is not supported by this class library.
In-Memory Database
An SQLite database is normally stored on disk but the database can also be stored in memory. Read more about SQLite in-memory databases here.
Using UTF16
With password
Using the pre 3.3x database format
With connection pooling
Connection pooling is not enabled by default. Use the following parameters to control the connection pooling mechanism.
Read only connection
Using DateTime.Ticks as datetime format
The default value is ISO8601 which activates the use of the ISO8601 datetime format
Store GUID as text
Normally, GUIDs are stored in a binary format. Use this connection string to store GUIDs as text.
Note that storing GUIDs as text uses more space in the database.
Specify cache size
The Cache Size value measured in bytes
Specify page size
The Page Size value measured in bytes
Disable enlistment in distributed transactions
Disable enlistment in distributed transactions
Disable create database behaviour
If the database file doesn't exist, the default behaviour is to create a new file. Use the following parameter to raise an error instead of creating a new database file.
Limit the size of database
The Max Page Count is measured in pages. This parameter limits the maximum number of pages of the database.
Disable the Journal File
This one disables the rollback journal entirely.
Persist the Journal File
This one blanks and leaves the journal file on disk after a commit. Default behaviour is to delete the Journal File after each commit.
Controling file flushing
Full specifies a full flush to take action after each write. Normal is the default value. Off means that the underlying OS flushes I/O's.
Finisar.SQLite ADO.NET Data Provider
Usage Finisar.SQLite.SQLiteConnection
Manufacturer Finisar.SQLite
Standard
The "Version" key can take value "2" for SQLite 2.x (default) or value "3" for SQLite 3.x
SQLite Version 2.X
Create a new database
Using compression
Specifying Cache Size
The Cache Size value represents the amount of data pages that are held in memory. Try increase this value for speed improvements but don't forget to keep track of the applications memory usage.
UTF 8
UTF 16
SQLite3 ODBC Driver
Usage
Manufacturer SQLite
Standard
.NET Framework Data Provider for ODBC
Usage System.Data.Odbc.OdbcConnection
Manufacturer Microsoft
Use an ODBC driver from .NET
See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here.