Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

T-SQL differences between SQL Server Compact Edition and real SQL Server?

Coming from an extensive SQL Server T-SQL background, I'm having trouble finding any specific documentation describing the differences in T-SQL support between SQL CE and full blown SQL Server. What are some of the differences you've run into? Is there a side-by-side T-SQL comparison somewhere? I've seen the MSDN documentation here, but I cannot seem to find any details about what T-SQL statements aren't portable between the two. One difference I found right away is the lack of an ISNUMERIC() function. Any others?

NOTE: I'm specifically more interested in differences in DML functionality than DDL and administrative functions which I'm sure are numerous and completely uninteresting.

like image 778
mattmc3 Avatar asked Aug 30 '10 20:08

mattmc3


People also ask

What is SQL Server Compact database?

Microsoft SQL Server Compact 4.0 is a free, embedded database that software developers can use for building ASP.NET websites and Windows desktop applications.

What replaced SQL Server Compact?

There are three alternatives to Microsoft SQL Server Compact for a variety of platforms, including Windows,. NET Framework, Android, iPhone and Linux. The best alternative is SQLite, which is both free and Open Source. Other great apps like Microsoft SQL Server Compact are CompactView and SQL Compact Query Analyzer.

What is Microsoft SQL Server Compact 3.5 used for?

SQL Server Compact 3.5 SP2 is an embedded database that allows developers to build robust applications for Windows desktops and mobile devices.

Is TSQL and SQL same?

T-SQL, which stands for Transact-SQL and is sometimes referred to as TSQL, is an extension of the SQL language used primarily within Microsoft SQL Server. This means that it provides all the functionality of SQL but with some added extras.


1 Answers

  • SQL Reference (SQL Server Compact 4.0)

SQL Server Compact supports only the Transact-SQL grammar documented in this section. SQL Reference for SQL Server Compact is a subset of Transact-SQL for SQL Server.

  • Syntax conventions and query elements

Syntax Conventions

  • Data Types

SQL Server Compact 4.0 supports the following data types.

  • Functions

SQL Server Compact supports the following functions.

  • Information Schema

The following table lists Information Schema views that are supported by SQL Server Compact.

  • Operators

SQL Server Compact supports the following operators.

  • Reserved Words

A reserved word in SQL Server Compact does not necessarily function the same way as the corresponding word in SQL Server. The following table lists the reserved words in SQL Server Compact.

  • Features not supported in SQL Server Compact 4.0

Starting with SQL Server Compact 4.0, there are few scenarios and features that are not supported by SQL Server Compact. This topic gives a brief account of features that were supported by the preceding versions of SQL Server Compact, including SQL Server Compact 3.5 SP2.

  • Differences Between SQL Server Compact and SQL Server

Use the following table to determine which Transact-SQL commands, features, and data types are supported by SQL Server Compact, compared with SQL Server.

previous version:

  • SQL Server Compact 3.5 SP2 - SQL Reference

  • SQL Server Compact 3.0 - SQL Reference

like image 199
Slawomir Cieslinski Avatar answered Nov 15 '22 06:11

Slawomir Cieslinski