SQL Server Compact

SQL Server Compact
SQL Server Compact
Filename extension .sdf
Developed by Microsoft
Type of format Relational database

Microsoft SQL Server Compact (SQL CE) is a compact relational database produced by Microsoft for applications that run on mobile devices and desktops. Prior to the introduction of the desktop platform, it was known as SQL Server for Windows CE and SQL Server Mobile Edition. The latest release is the SQL Server Compact 4.0[1] supporting .NET Framework 4.0, and dropping support for Windows Mobile in this release[2][1]. It includes both 32-bit and 64-bit native support.[1] SQL CE targets occasionally connected applications and applications with an embedded database.[3] It is free to download and redistribute.[3]

Contents

Overview

SQL Server Compact shares a common API with the other Microsoft SQL Server editions.[4] It also includes ADO.NET providers for data access using ADO.NET APIs, and built-in synchronization capabilities,[3] as well as support for LINQ and Entity Framework. Future releases will unify the synchronization capabilities with Microsoft Synchronization Services.[5] Unlike other editions of Microsoft SQL Server, SQL CE runs in-process[5] with the application which is hosting it; while having a memory footprint of less than 2 MB[3]; however, all SQL CE instances share the same memory pool[6].

Support

SQL CE databases are ACID-compliant. Like Microsoft SQL Server, SQL CE supports transactions, referential integrity constraints, locking as well as multiple connections to the database store.[4] However, nested transactions are not supported, even though parallel transactions (on different tables) are.[7] The current release does not support stored procedures[4] or native XML data type either.[5] It uses a subset of T-SQL[3] for querying and due to lack of XML support, XQuery is not supported either.[5] Queries are processed by an optimizing query processor[8]. SQL CE databases also support indexing, as well as support remote data replication (local caching of data in remote databases) and merge replication (bidirectional synchronization with master databases)[9].

SQL CE databases can be created and managed from Microsoft Visual Studio and SQL Server Management Studio as well.[8]

File Format

SQL CE databases reside in a single .sdf file,[10] which can be up to 4 GB in size.[4] The .sdf file can be encrypted with 128-bit encryption for data security.[10] SQL CE runtime mediates concurrent multi-user access to the .sdf file. The .sdf file can simply be copied to the destination system for deployment, or be deployed through ClickOnce. SQL CE runtime has support for DataDirectories.[6] Applications using an SQL CE database need not specify the entire path to an .sdf file in the ADO.NET connection string, rather it can be specified as |DataDirectory|\<database_name>.sdf, defining the data directory (where the .sdf database file resides) being defined in the assembly manifest for the application.

SQL Server Management Studio 2005 can read and modify CE 3.0 and 3.1 database files (with the latest service pack), but SQL Server Management Studio 2008 (or later) is required to read version 3.5 files. Microsoft Visual Studio Express 2008 SP1 can create, modify and query CE 3.5 SP1 database files.

Naming of the database file does not have to conform to the .sdf standard and any extension can be used.

Setting a password for the database file is optional. The database can be compressed and repaired with the option of the compacted/repaired database to be placed into a new database file.

See also

References

  1. ^ a b c ""Microsoft SQL Server Compact 4.0 is available for download - Microsoft's Embedded Database - SQL Server Compact - Team Blog - Site Home - MSDN Blogs"". http://blogs.msdn.com/b/sqlservercompact/archive/2011/01/12/microsoft-sql-server-compact-4-0-is-available-for-download.aspx. Retrieved 2011-03-01. 
  2. ^ ""Microsoft SQL Server Compact 3.5 with Service Pack 2 released with Visual Studio 2010 and on the Web"". http://blogs.msdn.com/sqlservercompact/archive/2010/04/14/microsoft-sql-server-compact-3-5-with-service-pack-2-released-with-visual-studio-2010-and-on-the-web.aspx. Retrieved 2010-04-19. 
  3. ^ a b c d e "SQL Server 2005 Compact Edition Datasheet". http://download.microsoft.com/download/7/f/c/7fc20778-4e2e-4944-b432-ed74b404e542/sqlservercompactdatasheet_final.doc. Retrieved 2007-07-03. 
  4. ^ a b c d "A Lap Around SQL Server 2005 Compact Edition". http://www.devx.com/dotnet/Article/33049/0. Retrieved 2005-07-03. 
  5. ^ a b c d "SQL Server Everywhere: Just Another Database?". http://www.ddj.com/dept/database/193402926. Retrieved 2007-07-03. 
  6. ^ a b "What's New (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172417.aspx. Retrieved 2007-07-03. 
  7. ^ "Transactions (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172400.aspx. Retrieved 2007-07-03. 
  8. ^ a b "Overview of Databases (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172037.aspx. Retrieved 2007-07-03. 
  9. ^ "Overview of Databases (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms171986.aspx. Retrieved 2007-07-03. 
  10. ^ a b "Data Storage Architecture with SQL Server 2005 Compact Edition". http://msdn2.microsoft.com/en-us/library/bb380177.aspx. Retrieved 2007-07-03. 

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • SQL Server Compact — Saltar a navegación, búsqueda Microsoft SQL Server Compact (SQL Server CE) es un motor de base de datos relacional, de libre descarga y distribución, tanto para dispositivos móviles como para aplicaciones escritorio. Especialmente orientada a… …   Wikipedia Español

  • SQL Server Compact — Edition (первоначальное название SQL Server Everywhere) новый продукт компании Майкрософт в линейке SQL Server, являющийся версией SQL Server Mobile со снятым запретом работы под Win32 и изменённой лицензией. Продукт выпущен 11 января 2007 года.… …   Википедия

  • SQL Server Compact — Vorlage:Infobox Dateiformat/Wartung/mime fehltVorlage:Infobox Dateiformat/Wartung/magic fehltVorlage:Infobox Dateiformat/Wartung/standard fehltVorlage:Infobox Dateiformat/Wartung/website fehlt SQL Server Compact Dateiendung .sdf Entwickelt von …   Deutsch Wikipedia

  • SQL Server Compact Edition — (первоначальное название SQL Server Everywhere) новый продукт компании Майкрософт в линейке SQL Server, являющийся версией SQL Server Mobile со снятым запретом работы под Win32 и изменённой лицензией. Продукт выпущен 11 января 2007 года. SQL… …   Википедия

  • Microsoft SQL Server Compact Edition — SQL Server Compact Edition (первоначальное название  SQL Server Everywhere)  новый продукт компании Майкрософт в линейке SQL Server, являющийся версией SQL Server Mobile со снятым запретом работы под Win32 и изменённой лицензией.… …   Википедия

  • Microsoft SQL Server Compact 4.0 — Тип Реляционная СУБД Разработчик Microsoft Написана на C, C++, C# Операционная система Microsoft Windows Последняя версия 4.0.8482.1 (16 января …   Википедия

  • Microsoft SQL Server Compact — Vorlage:Infobox Dateiformat/Wartung/MIME fehltVorlage:Infobox Dateiformat/Wartung/MagischeZahl fehltVorlage:Infobox Dateiformat/Wartung/Standard fehltVorlage:Infobox Dateiformat/Wartung/Website fehlt SQL Server Compact Dateiendung: .sdf …   Deutsch Wikipedia

  • SQL Server Everywhere — SQL Server Compact Edition (первоначальное название SQL Server Everywhere) новый продукт компании Майкрософт в линейке SQL Server, являющийся версией SQL Server Mobile со снятым запретом работы под Win32 и изменённой лицензией. Продукт выпущен 11 …   Википедия

  • SQL Server Express — Microsoft SQL Server Express, a freely downloadable and distributable version of Microsoft s SQL Server relational database management system, comprises a database specifically targeted for embedded and smaller scale applications. Contents 1… …   Wikipedia

  • SQL Server 2005 — Microsoft SQL Server Тип Реляционная СУБД Разработчик ОС Microsoft Windows Версия 2008 6 августа 2008 Лицензия …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”