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,今天我们 ...
随机推荐
- Rafy 领域实体框架演示(2) - 新功能展示
本文的演示需要先完成上一篇文章中的演示:<Rafy 领域实体框架示例(1) - 转换传统三层应用程序>.在完成改造传统的三层系统之后,本文将讲解使用 Rafy 实体框架后带来的一些常用功能 ...
- 基于Metronic的Bootstrap开发框架经验总结(12)--页面链接收藏夹功能的实现
在一个系统里面,往往有很多菜单项目,每个菜单项对应一个页面,一般用户只需要用到一些常用的功能,如果每次都需要去各个层次的菜单里面去找对应的功能,那确实有点繁琐.特别是在菜单繁多,而客户又对系统整体不熟 ...
- 基于MVC4+EasyUI的Web开发框架经验总结(17)--布局和对话框自动适应大小的处理
在我自己的<Web开发框架>中,用了很多年的EasyUI,最新版本EasyUI为1.4.5,随着版本的更新,其很多功能得到了很大的完善和提高,同时也扩展了一些新的功能,以前在布局和对话框弹 ...
- Entity FrameWork 6帮助类
public class BaseDAL { string strConn = ""; public BaseDAL(string connString) { strConn = ...
- Java代码优化(长期更新)
前言 2016年3月修改,结合自己的工作和平时学习的体验重新谈一下为什么要进行代码优化.在修改之前,我的说法是这样的: 就像鲸鱼吃虾米一样,也许吃一个两个虾米对于鲸鱼来说作用不大,但是吃的虾米多了,鲸 ...
- table中设置border的问题
今天在修改table样式的时,想给tr加个border-bottom,一开始用的颜色比较浅,我还以为看电脑太久眼花,结果换了比较深的颜色后,border-bottom真的没有出来. 忽然想起在ht ...
- Java程序,基本数据类型、、数据类型转换、变量和常量、常用运算符
一.基本数据类型 整数类型:byte.short. int(常用).long(较常用) 定义某个变量 int a=10: 浮点类型(小数):float.double(常用) ...
- 从零开始学 Java - Windows 下安装 JDK
关于未来 "我要死在火星.在我死去的时候能够想着人类能有一个美好的未来--有可持续的能源,同时能够殖民其他的星球来避免人类灭绝的最坏可能." 官网下载 直接打开官网:http:// ...
- ABP中使用Redis Cache(2)
上一篇讲解了如何在ABP中使用Redis Cache,虽然能够正常的访问Redis,但是Redis里的信息无法同步更新.本文将讲解如何实现Redis Cache与实体同步更新.要实现数据的同步更新,我 ...
- 4、ASP.NET MVC入门到精通——NHibernate构建一个ASP.NET MVC应用程序
下周就去办理离职手续了,之前没有使用过NHibernate,只知道NHibernate是一种ORM框架,但是听说新公司是使用NHibernate在做项目,所以,我就网上找资料学习一下NHibernat ...