SQLite connection strings
Basic
Data Source=c:\mydb.db;Version=3;
Version 2 is not supported by this class library.
SQLite 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.
Data Source=:memory:;Version=3;New=True;
SQLite Using UTF16
Data Source=c:\mydb.db;Version=3;UseUTF16Encoding=True;
SQLite With password
Data Source=c:\mydb.db;Version=3;Password=myPassword;
SQLite Using the pre 3.3x database format
Data Source=c:\mydb.db;Version=3;Legacy Format=True;
SQLite With connection pooling
Connection pooling is not enabled by default. Use the following parameters to control the connection pooling mechanism.
Data Source=c:\mydb.db;Version=3;Pooling=True;Max Pool Size=100;
SQLite Read only connection
Data Source=c:\mydb.db;Version=3;Read Only=True;
SQLite Using DateTime.Ticks as datetime format
Data Source=c:\mydb.db;Version=3;DateTimeFormat=Ticks;
The default value is ISO8601 which activates the use of the ISO8601 datetime format
SQLite Store GUID as text
Normally, GUIDs are stored in a binary format. Use this connection string to store GUIDs as text.
Data Source=c:\mydb.db;Version=3;BinaryGUID=False;
Note that storing GUIDs as text uses more space in the database.
SQLite Specify cache size
Data Source=c:\mydb.db;Version=3;Cache Size=2000;
The Cache Size value measured in bytes
SQLite Specify page size
Data Source=c:\mydb.db;Version=3;Page Size=1024;
The Page Size value measured in bytes
SQLite Disable enlistment in distributed transactions
Data Source=c:\mydb.db;Version=3;Enlist=N;
SQLite 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.
Data Source=c:\mydb.db;Version=3;FailIfMissing=True;
SQLite Limit the size of database
Data Source=c:\mydb.db;Version=3;Max Page Count=5000;
The Max Page Count is measured in pages. This parameter limits the maximum number of pages of the database.
SQLite Disable the Journal File
This one disables the rollback journal entirely.
Data Source=c:\mydb.db;Version=3;Journal Mode=Off;
SQLite 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.
Data Source=c:\mydb.db;Version=3;Journal Mode=Persist;
SQLite Controling file flushing
Data Source=c:\mydb.db;Version=3;Synchronous=Full;
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.
SQLite
↯ Problems connecting? Get answer in the SQLite Q & A forum →
Finisar.SQLite ADO.NET Data Provider
Standard
Data Source=c:\mydb.db;Version=3;
The "Version" key can take value "2" for SQLite 2.x (default) or value "3" for SQLite 3.x
SQLite SQLite Version 2.X
Data Source=c:\mydb.db;Version=2;
SQLite Create a new database
Data Source=c:\mydb.db;Version=3;New=True;
SQLite Using compression
Data Source=c:\mydb.db;Version=3;Compress=True;
SQLite 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.
Data Source=c:\mydb.db;Version=3;Cache Size=3000;
SQLite UTF 8
Data Source=c:\mydb.db;Version=3;UTF8Encoding=True;
SQLite UTF 16
Data Source=c:\mydb.db;Version=3;UTF16Encoding=True;
SQLite connection strings的更多相关文章
- Windows Phone本地数据库(SQLCE):9、Connection Strings(翻译) (转)
这是“windows phone mango本地数据库(sqlce)”系列短片文章的第八篇. 为了让你开始在Windows Phone Mango中使用数据库,这一系列短片文章将覆盖所有你需要知道的知 ...
- [转]Oracle connection strings
本文转自:http://www.connectionstrings.com/oracle/ Standard Data Source=MyOracleDB;Integrated Security=ye ...
- [转】[tip] localhost vs. (local) in SQL Server connection strings
主要区别在于连接协议不同,前者(localhost)使用TCP协议,后者("(local)")使用NamedPipe协议. Sample code with SQL Server ...
- How to: Secure Connection Strings When Using Data Source Controls
https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-3.0/dx0f3cf2(v=vs.85) When wo ...
- Adaptive Server Enterprise ODBC driver connection strings
Adaptive Server Enterprise 15.0 Driver={Adaptive Server Enterprise};app=myAppName;server=myServerAdd ...
- 通过代码来操作SQLite的示例
Getting started with SQLite in C# http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sq ...
- SQLite数据库连接方式
http://blog.csdn.net/ZF101201/archive/2010/05/26/5626365.aspx SQLite.NET Type: .NET Framework Cla ...
- delphi Sqlite
Delphi中SQLite如何读写二进制字段(Blob类型) 在Delphi中,有大量的组件可以操作SQLite数据库,如UniDAC就是其中一个比较优秀的,当然还有ASQLite3Component ...
- ASP.NET MVC 5 - 创建连接字符串(Connection String)并使用SQL Server LocalDB
您创建的MovieDBContext类负责处理连接到数据库,并将Movie对象映射到数据库记录的任务中.你可能会问一个问题,如何指定它将连接到数据库? 实际上,确实没有指定要使用的数据库,Entity ...
随机推荐
- MapReduce Input Split 输入分/切片
MapReduce Input Split(输入分/切片)详解 public static long getMaxSplitSize(JobContext context) { return cont ...
- HTTP Status Codes 状态码
Network Connect Timeout Error
- nignx部署django
操作系统:Linux wiki 2.6.32-131.0.15.el6.x86_64 nginx版本: nginx-1.5.7 uwsgi版本:uwsgi-2.0.8 大致流程参考:http://ww ...
- 实战c++中的vector系列--creating vector of local structure、vector of structs initialization
之前一直没有使用过vector<struct>,如今就写一个简短的代码: #include <vector> #include <iostream> int mai ...
- python 基础 9.5 数据库连接池
一. 数据库连接池 python 编程中可以使用MySQLdb 进行数据库的连接及诸如查询,插入,更新等操作,但是每次连接mysql 数据库请求时,都是独立的去请求访问,相当浪费资源,而且访 ...
- hihocoder1260,1261 (HASH经典题)
这两题比赛做的时候各种卡,太久没有写过这种类型的题目了.各种细节想不清楚. 赛后看下网上大部分题解的代码,发现大部分都是直接用TRIE+暴力直接搞的--!,随便找了份代码发现有些数据这种做法是超时的, ...
- java拾遗2----XML解析(二) SAX解析
XML解析之SAX解析: SAX解析器:SAXParser类同DOM一样也在javax.xml.parsers包下,此类的实例可以从 SAXParserFactory.newSAXParser() 方 ...
- HTML元素嵌套关系
- Nginx结合GeoIP库
1. 编译nginx时带上geoip模块 # wget http://nginx.org/download/nginx-x.x.x.tar.gz # tar zxvf nginx-x.x.x.tar. ...
- 算法设计 mac 字符串 标识 n维度 2 3维度 字符串 标识值 特征值
基向量