SQL Server mobile/compact Edition Brief Introduction

Source: Internet
Author: User
Tags compact sql server express

In addition to SQL Server Express,sql server, there is a more lightweight version: The SQL Server Compact Edition, which is reminiscent of the Windows compact Edition (Windows CE).

This version of SQL Server has only 1. SDF Data files (is not the thought of access, SQLite such database), mainly for: desktop programs (that is, single-machine programs), mobile device programs (mobile phones, tablets), embedded programs, etc., the need for lightweight database scenarios.

I. opening/ creating a database

1. SQL Server 2005, create a new database connection in SSMs, select SQL Server Mobile, specify the file path;

2. SQL Server 2008/2008 R2, create a new database connection in SSMs, select the SQL Server Compact, specify a file path, such as;

3. Beginning with SQL Server 2012 , the SQL Server Compact is no longer supported in SSMS and is supported in Visual Studio, which is what some developers call localdb/in Visual Studio Local database.

See MSDN for details:

Visual Studio https://msdn.microsoft.com/en-us/library/bb546200 (v=vs.110). aspx

Visual Studio https://msdn.microsoft.com/en-us/library/vstudio/ms233763.aspx

two. feature Support

There is a lot of functionality, and the database objects are monotonous, such as all objects on a newly created SQL Server Compact instance:

1. Very few database objects , only support custom tables, do not support custom views/stored Procedures/functions/triggers and so on;

2. Data type is limited , for example: character type only supports nchar, NVARCHAR;

3. The basic SQL syntax is limited , for example: count (DISTINCT) is not supported, having a reference to multiple columns;

4. Advanced SQL syntax is almost unsupported, such as: CTE, APPLY, MERGE, and so on;

Refer to msdn:https://msdn.microsoft.com/en-us/library/bb896140 (v=sql.100). aspx for details

In summary: Recently the company inside of a small program, someone used, feel very light, if the database components not too many requirements, may wish to try.

SQL Server mobile/compact Edition Brief Introduction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.