Aeonserv
     Links   


Handy Links
Home
C# and VB.NET Comparison
RGB TO HEX Conversion
Privacy Policy

     Topics   
Networking
Programming
Sharepoint (MOSS)
SSIS

     Tutorial   
Learn @ IT Jungles


     Connection strings Examples for SQLite   
Connection strings Examples for SQLite

SQLite.NET

This is a .NET class library from SQLite.

Download SQLite from SQLite website

Standard:

Data Source=filename;Version=3;
    
Using UTF16:

Data Source=filename;Version=3;UseUTF16Encoding=True;

With password:

Data Source=filename;Version=3;Password=yourPassword;
   
Using the pre 3.3x database format:

Data Source=filename;Version=3;Legacy Format=True;

With connection pooling:

Data Source=filename;Version=3;Pooling=False;Max Pool Size=100;
   
    Note: The default setting does not have connection pooling so you must set it with the parameter Max Pool Size.

Read only connection:

Data Source=filename;Version=3;Read Only=True;

Using DateTime.Ticks as datetime format:

Data Source=filename;Version=3;DateTimeFormat=Ticks;

    Note: ISO8601 is the default value for datetime format.

Store GUID as text:

Data Source=filename;Version=3;BinaryGUID=False;

    Note: By default GUID is store in binary format, if using text as a format then it will consume more space.

Specify cache size:

Data Source=filename;Version=3;Cache Size=2000;

Specify page size:

Data Source=filename;Version=3;Page Size=1024;

    Note: The page size is measure in bytes.

Disable enlistment in distributed transactions:

Data Source=filename;Version=3;Enlist=N;

    Automatically redirect connection to the mirrored database if the current one failed.

Disable enlistment in distributed transactions:

Data Source=filename;Version=3;Enlist=N;

Disable create database behaviour:

Data Source=filename;Version=3;FailIfMissing=True;

Limit the size of database:

Data Source=filename;Version=3;Max Page Count=5000;

Disable the Journal File:

Data Source=filename;Version=3;Journal Mode=Off;

Persist the Journal File:

Data Source=filename;Version=3;Journal Mode=Persist;

Controling file flushing:

Data Source=filename;Version=3;Synchronous=Full;




Finisar.SQLite ADO.NET Data Provider

This is a .NET wrapper class library from Finisar.SQLite.

Standard:

Data Source=yourdb.db;Version=3;

    Note: The version keyword indicate which version to use. the value 2 is for SQLite 2.x and value 3 is for SQLite 3.x.

Create a new database:

Data Source=yourdb.db;Version=3;New=True;

Using compression:

Data Source=yourdb.db;Version=3;Compress=True;

Specifying Cache Size:

Data Source=yourdb.db;Version=3;Cache Size=3000;

    Note: The higher the cache size value the more data pages is kept in memory, this will allow speed improvement with data processing.




SQLite3 ODBC Driver

This is a  OLE DB Provider from Microsoft. Its usage is Provider=SQLNCLI10.

Standard Security:

Driver;Database=yourdb.db;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;
 



.NET Framework Data Provider for ODBC

This is a .NET class library from Microsoft. The usage for this class library is System.Data.Odbc.OdbcConnection.

Standard :

DRIVER=SQLite3 ODBC Driver;Database=yourdb.db;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;


     Great Sites   
Make Money Online
Heath and Wealth Articles
ITJungles
Acne Information Portal

   Reading