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
Express 2012


SQL Server 2012 LocalDB


Deployment/ Installation Features

         

Installation size


2.5 MB download size
12 MB expanded on disk


2.5 MB download size
18 MB expanded on disk


10 MB download, 14 MB expanded on disk


120 MB download size
> 300 MB expanded on disk


32 MB download size
> 160 MB on disk


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


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 (not supported)


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.

时间: 2024-07-31 11:07:20

Comparison of SQL Server Compact, SQLite, SQL Server Express and LocalDB的相关文章

SQL Server Compact/SQLite Toolbox 使用

最近朋友一个嵌入式的数据库用的SqlCe 需要导入到Sqlite, 网上查到了这个工具--SQL Server Compact/SQLite Toolbox.但是在使用的时候遇到了一点小曲折,记录下来给需要的朋友. 这是Visual Studio 的一个插件,在VS2010.2013等环境用都可以使用,很方便.详见官网http://sqlcetoolbox.codeplex.com/ 正文 1)从官网或者微软的官网下载安装 该插件.地址  https://visualstudiogallery.

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?id=17876   2. 在vs2013里安装 SQL Server Compact & SQLite Toolbox 3.   sql server 小技巧 集锦

微软ASP.NET站点部署指南(2):部署SQL Server Compact数据库

1. 综述 对于数据库访问,Contoso University程序要求下面的软件必须随程序一起部署,因为不属于.NET Framework: SQL Server Compact (数据库引擎) ASP.NET Universal Providers (启用ASP.NET membership以使用SQL Server Compact) Entity Framework 4.1 (Code First) 2个数据库的数据库结构和相关的一些数据都需要部署.通常,开发系统的时候都会有一些测试数据,

微软ASP.NET网站部署指南(2):部署SQL Server Compact数据库

1. 综述 对于数据库訪问,Contoso University程序要求以下的软件必须随程序一起部署.由于不属于.NET Framework: SQL Server Compact (数据库引擎) ASP.NET Universal Providers (启用ASP.NET membership以使用SQL Server Compact) Entity Framework 4.1 (Code First) 2个数据库的数据库结构和相关的一些数据都须要部署.通常.开发系统的时候都会有一些測试数据,

让PDF.NET支持不同版本的SQL Server Compact数据库

最近项目中需要用到嵌入式数据库,我们选用的数据开发框架是PDF.NET(http://www.pwmis.com/SqlMap/),之前的博文已经总结了让PDF.NET支持最新的SQLite,今天我们来总结一下如何让PDF.NET支持不同版本的SQL Server Compact数据库.PDF.NET支持大部分主流的数据库,SQL Server Compact也不例外,但是PDF.NET只支持SQL Server Compact 4.0,而SQL Server Compact又没有做到向下兼容,

功能齐全、效率一流的免费开源数据库导入导出工具(c#开发,支持SQL server、SQLite、ACCESS三种数据库),每月借此处理数据5G以上

软件名:DataPie 功能:支持SQL server.SQLite.ACCESS数据库的导入.导出.存储过程调用,支持EXCEL2007.EXCEL2003.ACCESS2007. CSV文件导入数据库,支持EXCEL.CSV.ZIP.ACCESS文件方式导出,支持数据拆分导出及自定义SQL查询与导出. 开发背景:作者从事财务管理工作,主要是出具集团的内部财务报表,随着公司精细化管理的需求,管理报表的数据量急速增长, 依赖EXCEL加工处理数据已经变得极为困难,因此团队全面转向关系数据库进行数

Sql Server Compact 4.0数据库部署安装

Sql Server Compact 4.0相比3.5版本增强了很多,支持Entity Framework 4.1,对于轻量级应用来讲,使用Sql Server Compact 4.0是个很好的选择,而且部署相当方便,不需要 Sql Server Compact 4.0的安装包,仅需要发布相关的dll以及web.config配置即可. 开发环境下,需要安装 vs2010 sp1 Microsoft SQL Server Compact 4.0 Visual Studio 2010 SP1 Too

解决VS2010在新建实体数据模型出现“在 .NET Framework Data Provider for Microsoft SQL Server Compact 3.5 中发生错误。请与提供程序供应商联系以解决此问题。”的问题

最近想试着学习ASP.NET MVC,在点击 添加--新建项--Visual C#下的数据中的ADO.NET 实体数据模型,到"选择您的数据连接"时,出现错误,"在 .NET Framework Data Provider for Microsoft SQL Server Compact 3.5 中发生错误.请与提供程序供应商联系以解决此问题.",这里写下,以防自己忘记. 网上查了一下,说是重新安装一下 .NET Compact Framework 3.5,http

[转]如何:在设备上安装 SQL Server Compact 3.5

将设备连接到计算机,或者将仿真程序插入底座. 有关更多信息,请参见如何:将设备仿真程序插入底座和移除底座. 说明: 计算机上必须已安装了 Windows Mobile Device Center 或 Microsoft ActiveSync. 在桌面计算机上,启动 Windows 资源管理器,然后转至文件夹 驱动器:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce400 或 wce500\CPU 体系结构类型