Skip to content

Commit ca462d5

Browse files
Merge pull request #25417 from rwestMSFT/rw-1230-include-file-cleanup
INCLUDE file maintenance: move files around
2 parents ba37b3c + 743b6f4 commit ca462d5

18 files changed

Lines changed: 49 additions & 43 deletions

docs/database-engine/breaking-changes-to-database-engine-features-in-sql-server-2016.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about Database Engine changes in SQL Server 2016 (13.x) and e
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: randolphwest
8-
ms.date: 07/25/2022
8+
ms.date: 12/30/2022
99
ms.service: sql
1010
ms.subservice: release-landing
1111
ms.topic: conceptual
@@ -20,7 +20,7 @@ helpviewer_keywords:
2020

2121
This article describes breaking changes in the [!INCLUDE[sssql15-md](../includes/sssql16-md.md)] [!INCLUDE[ssDE](../includes/ssde-md.md)] and earlier versions of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)]. These changes might break applications, scripts, or functionalities that are based on earlier versions of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)]. You might encounter these issues when you upgrade.
2222

23-
## <a id="SQL15"></a> Breaking Changes in [!INCLUDE[sssql15-md](../includes/sssql16-md.md)]
23+
## <a id="SQL15"></a> Breaking changes in SQL Server 2016
2424

2525
- The *sample_ms* column of `sys.dm_io_virtual_file_stats` has expanded from an **int** to a **bigint** data type.
2626

@@ -30,18 +30,18 @@ This article describes breaking changes in the [!INCLUDE[sssql15-md](../includes
3030

3131
- Under database compatibility level 130, operations that perform implicit conversions between certain numeric and datetime data types show improved accuracy and can result in different converted values. This includes usage of functions that require calculations such as, for example, `DATEDIFF` and `ROUND`. For more information, see this [Microsoft Support Article](https://support.microsoft.com/help/4010261).
3232

33-
## <a id="previous-versions"></a> Previous Versions
33+
## Previous versions
3434

3535
For information about breaking changes in [!INCLUDE[ssSQL14](../includes/sssql14-md.md)], and in some earlier versions, see [Breaking Changes to Database Engine Features in SQL Server 2014](/previous-versions/sql/2014/database-engine/breaking-changes-to-database-engine-features-in-sql-server-2016).
3636

37-
#### Archived Documentation for Very Old Versions of SQL Server
37+
#### Archived documentation for old versions of SQL Server
3838

39-
[!INCLUDE[Archived documentation for very old versions of SQL Server](../includes/paragraph-content/previous-versions-archive-documentation-sql-server.md)]
39+
[!INCLUDE[previous-versions-archive-documentation-sql-server](includes/previous-versions-archive-documentation-sql-server.md)]
4040

4141
## See also
4242

4343
- [Deprecated Database Engine Features in SQL Server 2016](../database-engine/deprecated-database-engine-features-in-sql-server-2016.md)
4444
- [Discontinued Database Engine Functionality in SQL Server 2016](./discontinued-database-engine-functionality-in-sql-server.md)
4545
- [SQL Server Database Engine Backward Compatibility](./discontinued-database-engine-functionality-in-sql-server.md)
46-
- [ALTER DATABASE Compatibility Level &#40;Transact-SQL&#41;](../t-sql/statements/alter-database-transact-sql-compatibility-level.md)
46+
- [ALTER DATABASE Compatibility Level (Transact-SQL)](../t-sql/statements/alter-database-transact-sql-compatibility-level.md)
4747
- [SQL Server 2016 or SQL Server 2017 on Windows improvements in handling some data types and uncommon operations](https://support.microsoft.com/help/4010261)

docs/database-engine/breaking-changes-to-database-engine-features-in-sql-server-2017.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn about changes that might break applications, scripts, or fun
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: randolphwest
8-
ms.date: 07/25/2022
8+
ms.date: 12/30/2022
99
ms.service: sql
1010
ms.subservice: release-landing
1111
ms.topic: conceptual
@@ -20,7 +20,7 @@ monikerRange: ">=sql-server-2017||>=sql-server-linux-2017"
2020

2121
This article describes breaking changes in the [!INCLUDE[sssql17-md](../includes/sssql17-md.md)] [!INCLUDE[ssDE](../includes/ssde-md.md)]. These changes might break applications, scripts, or functionalities that are based on earlier versions of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)]. You might encounter these issues when you upgrade.
2222

23-
## Breaking changes in [!INCLUDE[sssql17-md](../includes/sssql17-md.md)] [!INCLUDE[ssDE](../includes/ssde-md.md)]
23+
## Breaking changes in SQL Server 2017 Database Engine
2424

2525
- CLR uses Code Access Security (CAS) in the .NET Framework, which is no longer supported as a security boundary. Beginning with [!INCLUDE[sssql17-md](../includes/sssql17-md.md)] [!INCLUDE[ssDE](../includes/ssde-md.md)], an `sp_configure` option called `clr strict security` is introduced to enhance the security of CLR assemblies. clr strict security is enabled by default, and treats `SAFE` and `EXTERNAL_ACCESS` CLR assemblies as if they were marked `UNSAFE`. The `clr strict security` option can be disabled for backward compatibility, but this isn't recommended. When `clr strict security` is disabled, a CLR assembly created with `PERMISSION_SET = SAFE` may be able to access external system resources, call unmanaged code, and acquire **sysadmin** privileges. After enabling strict security, any assemblies that aren't signed will fail to load. Also, if a database has `SAFE` or `EXTERNAL_ACCESS` assemblies, `RESTORE` or `ATTACH DATABASE` statements can complete, but the assemblies may fail to load.
2626

@@ -36,11 +36,11 @@ This article describes breaking changes in the [!INCLUDE[sssql17-md](../includes
3636

3737
#### Archived documentation for old versions of SQL Server
3838

39-
[!INCLUDE[Archived documentation for old versions of SQL Server](../includes/paragraph-content/previous-versions-archive-documentation-sql-server.md)]
39+
[!INCLUDE[previous-versions-archive-documentation-sql-server](includes/previous-versions-archive-documentation-sql-server.md)]
4040

4141
## See also
4242

4343
- [Deprecated Database Engine Features in SQL Server 2016](../database-engine/deprecated-database-engine-features-in-sql-server-2016.md)
4444
- [Discontinued Database Engine Functionality in SQL Server 2016](./discontinued-database-engine-functionality-in-sql-server.md)
4545
- [SQL Server Database Engine Backward Compatibility](./discontinued-database-engine-functionality-in-sql-server.md)
46-
- [ALTER DATABASE Compatibility Level &#40;Transact-SQL&#41;](../t-sql/statements/alter-database-transact-sql-compatibility-level.md)
46+
- [ALTER DATABASE Compatibility Level (Transact-SQL)](../t-sql/statements/alter-database-transact-sql-compatibility-level.md)

docs/includes/paragraph-content/previous-versions-archive-documentation-sql-server.md renamed to docs/database-engine/includes/previous-versions-archive-documentation-sql-server.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
We accumulate and retain documentation for very old versions of Microsoft SQL Server, in sets of archived webpages. The archived webpages are not processed by search engines, such as Bing.com and Google.com. Yet you can see these archives at our Docs _previous-versions/sql/_ address:
1+
---
2+
author: rwestMSFT
3+
ms.author: randolphwest
4+
ms.date: 12/30/2022
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
We accumulate and retain documentation for very old versions of Microsoft SQL Server, in sets of archived webpages. The archived webpages are not processed by search engines, such as *bing.com* and *google.com*. Yet you can see these archives at our Docs *previous-versions/sql/* address:
29

310
- [SQL Server previous versions documentation](/previous-versions/sql/)
411

512
These archives include the documentation for at least the following older versions:
613

7-
- SQL Server 2014
8-
- SQL Server 2012
9-
- SQL Server 2008 R2
10-
- SQL Server 2008
11-
- SQL Server 2005
14+
- [!INCLUDE [sssql14-md](../../includes/sssql14-md.md)]
15+
- [!INCLUDE [sssql11-md](../../includes/sssql11-md.md)]
16+
- [!INCLUDE [sql2008r2-md](../../includes/sql2008r2-md.md)]
17+
- [!INCLUDE [sql2008-md](../../includes/sql2008-md.md)]
18+
- [!INCLUDE [ssversion2005-md](../../includes/ssversion2005-md.md)]
1219

1320
[SQL Server 2014 documentation](/previous-versions/sql/2014/index?view=sql-server-2014&preserve-view=true) is still available on our main Docs address.
1421

@@ -18,6 +25,6 @@ FYI: In the following link syntax to SQL 2014 content, the two 'view' related pa
1825
[SQL Server 2014 documentation](/previous-versions/sql/2014/index?view=sql-server-2014&preserve-view=true) is still available on our main Docs address.
1926
-->
2027

21-
[SQL Server 2019 documentation](../../sql-server/index.yml?view=sql-server-ver15&preserve-view=true) is available on our main Docs address. Then use the versioning dropdown near the top of the page, to select another version of interest.
28+
[SQL Server 2022 documentation](../../sql-server/index.yml?view=sql-server-ver16&preserve-view=true) is available on our main Docs address. Then, you can use the versioning dropdown near the top of the page, to select another version of interest.
2229

2330
For more information about the documentation for previous versions of SQL Server, see [Previous versions of SQL Server documentation](/previous-versions/sql/).
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
2-
<!--
3-
### Code examples for Azure cloud differ slightly from on-premises
4-
Or.....
5-
### Code examples can differ for Azure SQL Database
6-
-->
7-
1+
---
2+
author: rwestMSFT
3+
ms.author: randolphwest
4+
ms.date: 12/30/2022
5+
ms.service: sql-database
6+
ms.topic: include
7+
---
88
Some Transact-SQL code examples written for SQL Server on-premises need small changes to run in the cloud. One category of such code examples involves system views whose name prefixes differ slightly between the two database systems:
99

10-
- **server\_** &nbsp; - &nbsp; _prefix for SQL Server and Azure SQL Managed Instance_
11-
- **database\_** &nbsp; - &nbsp; _prefix for Azure SQL Database and SQL Managed Instance_
10+
- **server_** - *prefix for SQL Server and Azure SQL Managed Instance*
11+
- **database_** - *prefix for Azure SQL Database and SQL Managed Instance*
1212

1313
Azure SQL Database supports only database-scoped sessions. [SQL Server Management Studio](../../ssms/sql-server-management-studio-ssms.md) (SSMS) fully supports database-scoped sessions for Azure SQL Database: an **Extended Events** node containing database-scoped sessions appears under each database in [Object Explorer](../../ssms/object/object-explorer.md).
1414

1515
Azure SQL Managed Instance supports both database-scoped sessions and server-scoped sessions. Server-scoped sessions are recommended for managed instances. SSMS fully supports server-scoped sessions for SQL Managed Instance: an **Extended Events** node containing all server-scoped sessions appears under the **Management** folder for each managed instance in Object Explorer.
1616

17-
> [!NOTE]
17+
> [!NOTE]
1818
> Database-scoped sessions are not displayed in Object Explorer in SSMS for Azure SQL Managed Instance. Database-scoped sessions may only be queried and managed with Transact-SQL when using a managed instance.
1919
2020
For illustration, the following table lists and compares two subsets of the system views. For brevity, the subsets are restricted to view names that also contain the string `_event`. The subsets have differing name prefixes because they come from two different database systems.
2121

2222
| Name from SQL Server | Name from cloud service |
23-
| :------------------------- | :---------------------- |
23+
| :--- | :--- |
2424
| server_event_notifications<br />server_event_session_actions<br />server_event_session_events<br />server_event_session_fields<br />server_event_session_targets<br />server_event_sessions<br />server_events<br />server_trigger_events | database_event_session_actions<br />database_event_session_events<br />database_event_session_fields<br />database_event_session_targets<br />database_event_sessions |
2525

26-
The two lists in the preceding table are accurate as of March 2022. But the table contents here may become outdated, because they will not be maintained here. For accurate lists, refer to the following T-SQL SELECT statement.
26+
The two lists in the preceding table were accurate as of March 2022. For an accurate list, run the following Transact-SQL SELECT statement:
2727

2828
```sql
2929
SELECT name
@@ -35,4 +35,3 @@ SELECT name
3535
AND type = 'V'
3636
ORDER BY name;
3737
```
38-

docs/relational-databases/import-export/create-a-format-file-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Generally, XML and non-XML format files are interchangeable. However, we recomme
2727
> The version of the **bcp** utility (Bcp.exe) used to read a format file must be the same as, or later than the version used to create the format file. For example, [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] **bcp** can read a version 10.0 format file, which is generated by [!INCLUDE[sql2008-md](../../includes/sql2008-md.md)] **bcp**, but [!INCLUDE[sql2008-md](../../includes/sql2008-md.md)] **bcp** cannot read a version 11.0 format file, which is generated by [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] **bcp**.
2828
2929
> [!NOTE]
30-
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE[Use ADF or PolyBase instead of Synapse Bulk Insert](../../includes/paragraph-content/bulk-insert-synapse.md)]
30+
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE [Use ADF or PolyBase instead of Synapse Bulk Insert](includes/bulk-insert-synapse.md)]
3131
3232
## Create a Non-XML format file
3333

docs/relational-databases/import-export/format-files-for-importing-or-exporting-data-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ When you bulk import data into a [!INCLUDE[ssNoVersion](../../includes/ssnoversi
2323
[!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] supports two types of format files: XML formats and non-XML format files. Both non-XML format files and XML format files contain descriptions of every field in a data file, and XML format files also contain descriptions of the corresponding table columns. Generally, XML and non-XML format files are interchangeable. However, we recommend that you use the XML syntax for new format files because they provide several advantages over non-XML format files. For more information, see [XML Format Files &#40;SQL Server&#41;](../../relational-databases/import-export/xml-format-files-sql-server.md).
2424

2525
> [!NOTE]
26-
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE[Use ADF or PolyBase instead of Synapse Bulk Insert](../../includes/paragraph-content/bulk-insert-synapse.md)]
26+
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE [Use ADF or PolyBase instead of Synapse Bulk Insert](includes/bulk-insert-synapse.md)]
2727
2828
## <a id="Benefits"></a> Benefits of format files
2929

docs/includes/paragraph-content/bulk-insert-synapse.md renamed to docs/relational-databases/import-export/includes/bulk-insert-synapse.md

File renamed without changes.

docs/relational-databases/import-export/non-xml-format-files-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], two types of forma
3333
> XML format files offer several advantages over non-XML format files. For more information, see [XML Format Files &#40;SQL Server&#41;](../../relational-databases/import-export/xml-format-files-sql-server.md).
3434
3535
> [!NOTE]
36-
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE[Use ADF or PolyBase instead of Synapse Bulk Insert](../../includes/paragraph-content/bulk-insert-synapse.md)]
36+
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE [Use ADF or PolyBase instead of Synapse Bulk Insert](includes/bulk-insert-synapse.md)]
3737
3838
## <a id="Structure"></a> Structure of Non-XML Format Files
3939

docs/relational-databases/import-export/use-a-format-file-to-bulk-import-data-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This article illustrates the use of a format file in bulk-import operations. A
3030
* [Load data into Azure Synapse Analytics](/azure/synapse-analytics/sql-data-warehouse/design-elt-data-loading)
3131
* [Load data from SQL Server into Azure Synapse Analytics (flat files)](/azure/synapse-analytics/sql-data-warehouse/design-elt-data-loading)
3232
* [Migrate Your Data](/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-overview-develop)
33-
* This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE[Use ADF or PolyBase instead of Synapse Bulk Insert](../../includes/paragraph-content/bulk-insert-synapse.md)]
33+
* This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE [Use ADF or PolyBase instead of Synapse Bulk Insert](includes/bulk-insert-synapse.md)]
3434

3535
## Example test conditions
3636

docs/relational-databases/import-export/use-a-format-file-to-map-table-columns-to-data-file-fields-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A data file can contain fields arranged in a different order from the correspond
2323
> Either a non-XML or XML format file can be used to bulk import a data file into the table by using a [bcp utility](../../tools/bcp-utility.md) command, [BULK INSERT](../../t-sql/statements/bulk-insert-transact-sql.md) statement, or INSERT ... SELECT * FROM [OPENROWSET(BULK...)](../../t-sql/functions/openrowset-transact-sql.md) statement. For more information, see [Use a Format File to Bulk Import Data &#40;SQL Server&#41;](../../relational-databases/import-export/use-a-format-file-to-bulk-import-data-sql-server.md).
2424
2525
> [!NOTE]
26-
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE[Use ADF or PolyBase instead of Synapse Bulk Insert](../../includes/paragraph-content/bulk-insert-synapse.md)]
26+
> This syntax, including bulk insert, is not supported in Azure Synapse Analytics. [!INCLUDE [Use ADF or PolyBase instead of Synapse Bulk Insert](includes/bulk-insert-synapse.md)]
2727
2828
## <a id="etc"></a> Example test conditions
2929

0 commit comments

Comments
 (0)