- 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
- ^ 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.
- ^ ""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.
- ^ 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.
- ^ a b c d "A Lap Around SQL Server 2005 Compact Edition". http://www.devx.com/dotnet/Article/33049/0. Retrieved 2005-07-03.
- ^ a b c d "SQL Server Everywhere: Just Another Database?". http://www.ddj.com/dept/database/193402926. Retrieved 2007-07-03.
- ^ a b "What's New (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172417.aspx. Retrieved 2007-07-03.
- ^ "Transactions (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172400.aspx. Retrieved 2007-07-03.
- ^ a b "Overview of Databases (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms172037.aspx. Retrieved 2007-07-03.
- ^ "Overview of Databases (SQL Server Compact Edition)". http://technet.microsoft.com/en-us/library/ms171986.aspx. Retrieved 2007-07-03.
- ^ 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
- SQL Server Compact 3.5
- SQL Server Compact Release Versions
- Microsoft's Embedded Database - SQL Server Compact - Team Blog
Windows Mobile, Windows Phone (Microsoft Corporation) Device software Desktop synchronization Services My Phone · Windows Error Reporting · Windows Marketplace for Mobile · Windows Phone Live · Windows Phone MarketplaceServer utilization Hardware Development Models Windows Mobile
OS based810-F · A3100 · Ace · Athena · BlackJack · BlackJack II · Dash · DX900 · eXpo · HD2 · HD Mini · i600 · i780 · Incite · Jack · KS20 · MAX 4G · nüvifone M10 · nüvifone M20 · Omnia · Omnia II · Omnia Lite · Omnia Pro B7330 · Omnia Pro B7610 · Propel Pro · Saga · Shadow · Smartflip · TG01 · Touch · Touch2 · Touch 3G · Touch Cruise · Touch Diamond · Touch Diamond2 · Touch Dual · Touch HD · Touch Pro · Touch Pro2 · Touch Viva · Treo Pro · TyTN · TyTN II · Vox · Wing · Wings · Xda · Xperia X1 · Xperia X2Windows Phone
OS basedDell Venue Pro · HTC 7 Mozart · HTC 7 Pro · HTC 7 Surround · HTC 7 Trophy · HTC HD7 · LG Optimus 7 · LG Quantum / Optimus 7Q · Samsung Focus · Samsung Omnia 7 · HTC Titan · HTC RadarKIN Microsoft development tools Development
environmentsOthersLanguages and
compilersVisual Basic · Visual Basic .NET · Visual C++ · Visual C# · Visual J# · Visual FoxPro · IronPython · IronRuby · PowerShell · XAML · F#Major APIs and
frameworksWindows API / SDK · .NET Framework · Managed code frameworks (Presentation · Communication · Workflow · CardSpace) · Silverlight · XNA · ASP.NET (ASP.NET AJAX) · LINQ · ADO.NET · DirectX (Managed DirectX) · Xbox Development KitDatabase tools
and languagesSQL servicesOtherSource control Deployment Driver development Performance Analysis Categories:- Microsoft software
- Microsoft server technology
- Windows Mobile
- Relational database management systems
Wikimedia Foundation. 2010.