|
1 | 1 | --- |
2 | 2 | title: "ALTER DATABASE Compatibility Level (Transact-SQL) | Microsoft Docs" |
3 | 3 | ms.custom: "" |
4 | | -ms.date: "12/16/2016" |
| 4 | +ms.date: "03/28/2017" |
5 | 5 | ms.prod: "sql-non-specified" |
6 | 6 | ms.reviewer: "" |
7 | 7 | ms.suite: "" |
@@ -45,25 +45,25 @@ SET COMPATIBILITY_LEVEL = { 140 | 130 | 120 | 110 | 100 | 90 } |
45 | 45 | *database_name* |
46 | 46 | Is the name of the database to be modified. |
47 | 47 |
|
48 | | - COMPATIBILITY_LEVEL { 130 | 120 | 110 | 100 | 90 | 80 } |
| 48 | + COMPATIBILITY_LEVEL { 140 | 130 | 120 | 110 | 100 | 90 | 80 } |
49 | 49 | Is the version of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] with which the database is to be made compatible. The following compatibility level values can be configured: |
50 | 50 |
|
51 | 51 | |Product|Database Engine Version|Compatibility Level Designation|Supported Compatibility Level Values| |
52 | 52 | |-------------|-----------------------------|-------------------------------------|------------------------------------------| |
53 | 53 | |[!INCLUDE[ssSQLv14_md](../../includes/sssqlv14-md.md)]|14|140|140, 130, 120, 110, 100| |
| 54 | +|[!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)]|12|130|140, 130, 120, 110, 100| |
54 | 55 | |[!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]|13|130|130, 120, 110, 100| |
55 | | -|[!INCLUDE[ssSDS](../../includes/sssds-md.md)]|12|120|130, 120, 110, 100| |
56 | 56 | |[!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]|12|120|120, 110, 100| |
57 | 57 | |[!INCLUDE[ssSQL11](../../includes/sssql11-md.md)]|11|110|110, 100, 90| |
58 | | -|[!INCLUDE[ssKilimanjaro](../../includes/sskilimanjaro-md.md)]|10.5|105|100, 90, 80| |
| 58 | +|[!INCLUDE[ssKilimanjaro](../../includes/sskilimanjaro-md.md)]|10.5|100|100, 90, 80| |
59 | 59 | |[!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)]|10|100|100, 90, 80| |
60 | 60 | |SQL Server 2005|9|90|90, 80| |
61 | 61 | |SQL Server 2000|8|80|80| |
62 | 62 |
|
63 | 63 | > [!NOTE] |
64 | 64 | > **Azure SQL Database** V12 was released in December 2014. One aspect of that release was that newly created databases had their compatibility level set to 120. In 2015 SQL Database began support for level 130, although the default remained 120. |
65 | 65 | > |
66 | | -> Starting in **mid-June 2016**, in Azure SQL Database, the default compatibility level will be 130 instead of 120 for **newly created** databases. Existing databases created before mid-June 2016 will not be affected, and will maintain their current compatibility level (100, 110, or 120). |
| 66 | +> Starting in **mid-June 2016**, in Azure SQL Database, the default compatibility level are 130 instead of 120 for **newly created** databases. Existing databases created before mid-June 2016 are not affected, and maintain their current compatibility level (100, 110, or 120). |
67 | 67 | > |
68 | 68 | > If you want level 130 for your database generally, but you have reason to prefer the level 110 **cardinality estimation** algorithm, see [ALTER DATABASE SCOPED CONFIGURATION (Transact-SQL)](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md), and in particular its keyword LEGACY_CARDINALITY_ESTIMATION =ON. |
69 | 69 | > |
|
0 commit comments