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 ...
随机推荐
- struts2 拦截器,使用spring注入
ActionContext actionContext = invocation.getInvocationContext();ServletContext context = (ServletCon ...
- centos6下手工编译vitess
vitess是youtub开源的一款mysql代理,在ubuntu下编译非常方便.可是在centos下且不能訪问google的情况下坑比較多.近期依据其bootstrap.sh脚本手工编译成功.把过程 ...
- HDFS源码分析之FSImage文件内容(一)总体格式
FSImage文件是HDFS中名字节点NameNode上文件/目录元数据在特定某一时刻的持久化存储文件.它的作用不言而喻,在HA出现之前,NameNode因为各种原因宕机后,若要恢复或在其他机器上重启 ...
- iOS 9之3D Touch功能
首先要有真机iPhone 6s以上,开发工具Xcode 7,然后在官方文档拷贝一段文字就可以了. <key>UIApplicationShortcutItems</key> ...
- Linux 随手记(文件操作)
新建文件夹 mkdir 文件夹名 新建文件 touch 文件名 重命名 mv 文件名 新文件名 将/a目录移动到/b下,并重命名为c mv /a /b/c 复制文件 cp [选项] 源文件或目录 目标 ...
- centOS6.2 最小安装下的无线网络配置
一.安装wireless_tools,http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wireless_tools.html 二.vi / ...
- 使用Socket通信实现FTP客户端程序
FTP 客户端如 FlashFXP,File Zilla 被广泛应用,原理上都是用底层的 Socket 来实现.FTP 客户端与服务器端进行数据交换必须建立两个套接字,一个作为命令通道,一个作为数据通 ...
- Jmeter+Ant+Jenkins接口自动化测试框架搭建
前言 软件开发的V模型大家都不陌生,其中测试阶段分为单元测试→功能测试→系统测试→验收测试.其中单元测试一般由开发同学们自己完成,大部分测试具体实施(这里不包括用例设计)是从单体功能测试开始着手的. ...
- docker安装并配置加速
安装 旧版本的 Docker 称为 docker 或者 docker-engine,使用以下命令卸载旧版本: sudo apt-get remove docker \ docker-engine \ ...
- apche安装教程
从Apache官网下载windows安装版的Apache服务器了, 现在分享给大家. 1 进入apache服务器官网http://httpd.apache.org/,这里我们以下载稳定版的 htt ...