Comparison of SQL Server Compact, SQLite, SQL Server Express and LocalDB
Information about LocalDB comes from here and SQL Server 2014 Books Online. LocalDB is the full SQL Server Express engine, but invoked directly from the client provider. It is a replacement of the current “User Instance” feature in SQL Server Express.
|
Feature |
SQL Server Compact 3.5 SP2 |
SQL Server Compact 4.0 |
SQLite, incl SQLite ADO.NET Provider |
SQL Server |
SQL Server 2012 LocalDB |
|
Deployment/ Installation Features |
|||||
|
Installation size |
2.5 MB download size |
2.5 MB download size |
10 MB download, 14 MB expanded on disk |
120 MB download size |
32 MB download size |
|
ClickOnce deployment |
Yes |
Yes |
Yes |
Yes |
Yes |
|
Privately installed, embedded, with the application |
Yes |
Yes |
Yes |
No |
No |
|
Non-admin installation option |
Yes |
Yes |
Yes |
No |
No |
|
Runs under ASP.NET |
No |
Yes |
Yes |
Yes |
Yes |
|
Runs on Windows Mobile / Windows Phone platform |
Yes |
No |
Yes |
No |
No |
|
Runs on WinRT (Phone/Store Apps) |
No |
No |
Yes |
No |
No |
|
Runs on non-Microsoft platforms |
No |
No |
Yes |
No |
No |
|
Installed centrally with an MSI |
Yes |
Yes |
Yes |
Yes |
Yes |
|
Runs in-process with application |
Yes |
Yes |
Yes |
No |
No (as process started by app) |
|
64-bit support |
Yes |
Yes |
Yes |
Yes |
Yes |
|
Runs as a service |
No – In process with application |
No - In process with application |
No - In process with application |
Yes |
No – as launched process |
|
Data file features |
|||||
|
File format |
Single file |
Single file |
Single file |
Multiple files |
Multiple files |
|
Data file storage on a network share |
No |
No |
No |
No |
No |
|
Support for different file extensions |
Yes |
Yes |
Yes |
No |
No |
|
Database size support |
4 GB |
4 GB |
140 TB |
10 GB |
10 GB |
|
XML storage |
Yes – stored as ntext |
Yes - stored as ntext |
Yes, stored as text |
Yes, native |
Yes, native |
|
Binary (BLOB) storage |
Yes – stored as image |
Yes - stored as image |
Yes |
Yes |
Yes |
|
FILESTREAM support |
No |
No |
No |
Yes |
No |
|
Code free, document safe, file format |
Yes |
Yes |
No |
No |
|
|
Programmability |
|||||
|
Transact-SQL - Common Query Features |
Yes |
Yes |
No |
Yes |
Yes |
|
Procedural T-SQL - Select Case, If, features |
No |
No |
Limited |
Yes |
Yes |
|
Remote Data Access (RDA) |
Yes |
No (not supported) |
No |
No |
No |
|
ADO.NET Sync Framework |
Yes |
No |
No |
Yes |
Yes |
|
LINQ to SQL |
Yes |
No |
Yes |
Yes |
|
|
ADO.NET Entity Framework 4.1 |
Yes (no Code First) |
Yes |
Yes |
Yes |
Yes |
|
ADO.NET Entity Framework 6 |
Yes (fully) |
Yes (fully) |
Yes (limited) |
Yes |
Yes |
|
Subscriber for merge replication |
Yes |
No |
No |
Yes |
No |
|
Simple transactions |
Yes |
Yes |
Yes |
Yes |
Yes |
|
Distributed transactions |
No |
No |
No |
Yes |
Yes |
|
Native XML, XQuery/XPath |
No |
No |
No |
Yes |
Yes |
|
Stored procedures, views, triggers |
No |
No |
Views and triggers |
Yes |
Yes |
|
Role-based security |
No |
No |
No |
Yes |
Yes |
|
Number of concurrent connections |
256 (100) |
256 |
Unlimited |
Unlimited |
Unlimited (but only local) |
There is also a table here that allows you to determine which Transact-SQL commands, features, and data types are supported by SQL Server Compact 3.5 (which are the same a 4.0 with very few exceptions), compared with SQL Server 2005 and 2008.
参考
SQLite——只要3分钟,你就可以在.NET上创建和运行它
Comparison of SQL Server Compact, SQLite, SQL Server Express and LocalDB的更多相关文章
- SQL Server Compact/SQLite Toolbox 使用
最近一个嵌入式的数据库用的SqlCe 需要导入到Sqlite, 网上查到了这个工具--SQL Server Compact/SQLite Toolbox.但是在使用的时候遇到了一点小曲折,记录下来给需 ...
- SQL Server Compact/SQLite Toolbox
如果你的vs2013 无法打开 .sdf 数据库文件. 那么 SQL Server Compact/SQLite Toolbox,可以帮助你. 下载安装后, vs2013->tools-> ...
- VS2010 使用 EntityFramework For SQL Server Compact 4.0
1.安装 SSCERuntime_x64-ENU.exe 或 SSCERuntime_x86-ENU.exe 2.安装 SSCEVSTools-CHS.msi 3.然后就可以通过 SQL Server ...
- sql server 与 sql server compact 互相数据导入
从SQL Server 导出数据到 Sql Compact 使用 Sql Server Compact Tool box 从SQL Server Comapct 导出数据到 Sql Server 使 ...
- sql server 小技巧(8) visual studio 2013里使用Sql server compact 4.0及发布问题处理
1. 安装 Microsoft SQL Server Compact 4.0 https://www.microsoft.com/zh-cn/download/confirmation.aspx?i ...
- 微软ASP.NET网站部署指南(2):部署SQL Server Compact数据库
1. 综述 对于数据库訪问,Contoso University程序要求以下的软件必须随程序一起部署.由于不属于.NET Framework: SQL Server Compact (数据库引擎) A ...
- XamarinSQLite教程下载安装SQLite/SQL Server Compact Toolbox
XamarinSQLite教程下载安装SQLite/SQL Server Compact Toolbox SQLite/SQL Server Compact Toolbox是一个Visual Stud ...
- Visual Studio 2017:SQLite/SQL Server Compact ToolBox使用
1.首先是下载安装插件:SQLite/SQL Server Compact Toolbox,也可以从工具-->扩展和更新-->联机-->搜索:SQLite/SQL Server Co ...
- 让PDF.NET支持不同版本的SQL Server Compact数据库
最近项目中需要用到嵌入式数据库,我们选用的数据开发框架是PDF.NET(http://www.pwmis.com/SqlMap/),之前的博文已经总结了让PDF.NET支持最新的SQLite,今天我们 ...
随机推荐
- QTableView中修改某个单元格或者行或者列内容颜色
QTableView的单元格内容实现还是继承了TableViewModel类的data(const QModelIndex &index, int role) const函数,那个设置颜色的问 ...
- VS2013设置护眼背景颜色
打开VS2013 —> 工具 —> 选项 —> 环境 —> 字体和颜色 —> 选择显示项中的纯文本 —> 项目背景 —> 自定义—> 色调位85.饱和度 ...
- bzoj 1001狼抓兔子(对偶图+最短路)最大流
推荐文章:<浅析最大最小定理在信息学竞赛中的应用>--周冬 题目 现在小朋友们最喜欢的"喜羊羊与灰太狼",话说灰太狼抓羊不到,但抓兔子还是比较在行的, 而且现在的兔子还 ...
- Java基础学习总结 -- 图形用户界面GUI
虽然目前Java算不上前端开发的主力,但是作为Java入门基础的一部分,学习Java的GUI编程还是有必要的,而且可以做出一些小且有趣的图形程序来提高学习热情.本篇学习总结均为一个Beginner的笔 ...
- CSS3与页面布局学习笔记(四)——页面布局大全(负边距、双飞翼、多栏、弹性、流式、瀑布流、响应式布局)
一.负边距与浮动布局 1.1.负边距 所谓的负边距就是margin取负值的情况,如margin:-100px,margin:-100%.当一个元素与另一个元素margin取负值时将拉近距离.常见的功能 ...
- 2015元旦来个炫的html5特效
效果网址:http://keleyi.com/keleyi/phtml/html5/5.htm 代码: <!DOCTYPE html> <html xmlns="http: ...
- Source Map调试压缩后代码
在前端开发过程中,无论是样式还是脚本,运行时的文件可能是压缩后的,那这个时候调试起来就很麻烦. 这个时候,可以使用Source Map文件来优化调试,Source Map是一个信息文件,里面储存着原代 ...
- Vi (Unix及Linux系统下标准的编辑器)VIM (Unix及类Unix系统文本编辑器)
Vi是Unix及Linux系统下标准的编辑器.学会它后,您将在Linux的世界里畅行无阻.基本上vi可以分为三种状态,分别是命令模式.插入模式,和底行模式. vi编辑器是所有Unix及Linux系统下 ...
- sqlserver下调试sql语句
现在版本的sqlServer已经支持调试功能了,但是在使用的时候用到的却很少(毕竟print习惯了..) 这里做一个笔记,简单的说明一下在sqlserver下调试的方法: declare @i int ...
- n个元素的入栈顺序有多少种出栈顺序?
问题:w1.w2.w3.w4.w5,5个元素将会按顺序入栈,求出栈顺序有多少种情况. 先写一下结论方便记忆: 1个元素:1种 2个元素:2种 3个元素:5种 4个元素:14种 5个元素:42种 简单的 ...