Often times the .SDF database is not running in the current directory so it becomes necessary to programatically set the path to the SDF file. This is an example (.net C#) on how to do this when the SDF file is located in the same directory as the executing application.
The maximum size of the database is by default 128 MB. Override this by using the following connection string.
The largest amount of memory that can be in use before the server starts flushing changes to disk is by default 640 kB. Override this by using the following connection string.
Use this connection string to enable encryption on the database.
The Encrypt Database="True" pair is really not necessary as the presence of the Password-parameter itself turns on encryption for the connection.
Use this one to disallow other processes from opening or modifying the database while you have it open.
Use this one to open a read-only copy of the database.
Use this one to allow other processes to read, but not modify, the database while you have it open.
The maximum size of the temporary database file is by default 128 MB. Override this by using the following connection string.
Often times the .SDF database is not running in the current directory so it becomes necessary to programatically set the path to the SDF file. This is an example (.net C#) on how to do this when the SDF file is located in the same directory as the executing application.
The maximum size of the database is by default 128 MB. Override this by using the following connection string.
The largest amount of memory that can be in use before the server starts flushing changes to disk is by default 640 kB. Override this by using the following connection string.
Use this connection string to enable encryption on the database.
The maximum size of the temporary database file is by default 128 MB. Override this by using the following connection string.
Set the directory for the temp file location using this connection string.
Use this connection string to provide the database password when opening the connection.
This is just one connection string sample for the wrapping OleDbConnection class that calls the underlying OLEDB provider. See respective OLE DB provider for more connection strings to use with this class.
本日志由 flyinweb 于 2012-01-04 10:55:51 发表,目前已经被浏览 363 次,评论 0 次;
作者添加了以下标签: SQL Server Compact Edition,Connection strings;
引用通告:http://www.517sou.net/Article/745/Trackback.ashx
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱