Comparison of SQL Server Compact, SQLite, SQL Server Express and LocalDB
2014-11-20 14:30
465 查看
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.
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.
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) |
参考
SQLite——只要3分钟,你就可以在.NET上创建和运行它相关文章推荐
- SQL SERVER – Difference Between SQL Server Compact Edition (CE) and SQL Server Express Edition
- SQL SERVER – Difference Between SQL Server Compact Edition (CE) and SQL Server Express Edition
- SQL Server Management Studio Express 无法连接 SQL Compact Edition(或新建数据库文件)的问题
- 使用C++访问sqlserver express的轻量级版本localdb
- ASP.NET MVC 3、WebMatrix、IIS Developer Express、SQL Server Compact Edition、Razor
- SQL Server Express和SQL Server Compact的应用
- [C#]SQL Server Express LocalDb(SqlLocalDb)的一些体会
- SQL Server Express和SQL Server Compact的应用
- SQL Server Compact/SQLite Toolbox
- Remote Data Access Synchronization with SQL Server 2005 Compact Edition and Visual C#.NET
- (转)Inno Setup Script Silently install .NET 3.5 and Sql Server Express
- 让SQL Server Compact支持 Membership, Role and Profile provider
- VS2013自带的数据库SQL Server Express LocalDB使用介绍
- To upgrade the project database to use SQL Server LocalDB Express, …
- asp.net VS2013自带的数据库SQL Server Express LocalDB使用介绍
- sqlserver compact sdf, sqlite 数据库 在net中相对路径设置方法 - 摘自网络
- 让SQL Server Compact支持 Membership, Role and Profile provider
- [转]SQL Server Express和SQL Server Compact的应用
- Configuring Internet Information Services for SQL Server 2005 Compact Edition Remote Data Access and Merge Replication
- Stored procedures versioning with SQL Server and Visual SourceSafe