Skip to content

Commit 2f7fd66

Browse files
Merge pull request #35935 from MicrosoftDocs/main
Auto Publish – main to live - 2025-11-25 23:30 UTC
2 parents 07ccd5b + 556ed55 commit 2f7fd66

File tree

3 files changed

+59
-31
lines changed

3 files changed

+59
-31
lines changed

docs/database-engine/configure-windows/clr-strict-security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Controls the interpretation of the `SAFE`, `EXTERNAL_ACCESS`, or `UNSAFE` permis
2323

2424
| Value | Description |
2525
| --- | --- |
26-
| `0` | **Disabled.** Provided for backward compatibility. Setting this value to `0` isn't recommended. |
26+
| `0` | **Disabled.** Provided for backward compatibility. Setting this value to `0` isn't recommended, as it can create a security vulnerability. |
2727
| `1` | **Enabled.** Causes the [!INCLUDE [ssde-md](../../includes/ssde-md.md)] to ignore the `PERMISSION_SET` information on the assemblies, and always interpret them as `UNSAFE`. In [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)] and later versions, `1` is the default value. |
2828

2929
## Code access security no longer supported

docs/t-sql/functions/serverproperty-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The following table lists possible values for `EditionID` and `Edition`.
121121
| `-1592396055` | Express |
122122
| `-133711905` | Express with Advanced Services |
123123
| `-1534726760` | Standard |
124-
| `1293598313` | Web |
124+
| `1293598313` | Web <sup>1</sup> |
125125
| `1674378470` | [!INCLUDE [ssSDS](../../includes/sssds-md.md)] or [!INCLUDE [ssazuresynapse-md](../../includes/ssazuresynapse-md.md)] |
126126
| `-1461570097` | Azure SQL Edge Developer <sup>3</sup> |
127127
| `1994083197` | Azure SQL Edge <sup>4</sup> |
Lines changed: 57 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "@@VERSION (Transact-SQL)"
3-
description: "@@VERSION - Transact SQL Configuration Functions"
3+
description: Returns SQL Server installation system and build information.
44
author: MikeRayMSFT
55
ms.author: mikeray
6-
ms.reviewer: maghan
7-
ms.date: 09/25/2024
6+
ms.reviewer: maghan, randolphwest
7+
ms.date: 11/25/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -24,75 +24,103 @@ dev_langs:
2424
monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric || =fabric-sqldb"
2525
---
2626

27-
# @@VERSION - Transact SQL Configuration Functions
27+
# @@VERSION (Transact SQL)
2828

2929
[!INCLUDE [sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw-fabricsqldb](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw-fabricsqldb.md)]
3030

31-
Returns system and build information for the current installation of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
31+
The `@@VERSION` configuration function returns information about the system and [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] build information.
3232

3333
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3434

3535
> [!IMPORTANT]
36-
> The [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] version numbers for [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] are not comparable with each other, and represent internal build numbers for these separate products. The [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] for [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] is based on the same code base as the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. Most importantly, the [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] always has the newest SQL [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] bits. For example, version 12 of [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] is newer than version 16 of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
36+
> The [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] version numbers for [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] aren't comparable with each other, and represent internal build numbers for these separate products. For more information, see the [Remarks](#remarks) section.
3737
3838
## Syntax
3939

4040
```syntaxsql
4141
@@VERSION
4242
```
4343

44-
## Return Types
44+
## Return types
4545

4646
**nvarchar**
4747

4848
## Remarks
4949

50-
The @@VERSION results are presented as one nvarchar string. You can use the [SERVERPROPERTY (Transact-SQL)](../../t-sql/functions/serverproperty-transact-sql.md) function to retrieve the individual property values.
50+
- The [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] version numbers for [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] aren't comparable with each other, and represent internal build numbers for these separate products. The [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] for [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] is based on the same code base as the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. Most importantly, the [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] always has the newest SQL [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] bits. For example, version 12 of [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] is newer than version 16 of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
5151

52-
For [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)], the following information is returned.
52+
- The `@@VERSION` results appear as one **nvarchar** string. Use the [SERVERPROPERTY](serverproperty-transact-sql.md) function to get the individual property values.
5353

54-
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] version
54+
- For [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)], the `@@VERSION` results include:
5555

56-
- Processor architecture
56+
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] version
57+
- Processor architecture
58+
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] build date
59+
- Copyright statement
60+
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] edition
61+
- Operating system version
5762

58-
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] build date
63+
The operating system version information comes from the host, virtual machine, or container where [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] is installed. It doesn't necessarily reflect the retail version of the underlying operating system. For information about querying Windows version information using the [WMI Query Language (WQL)](/windows/win32/wmisdk/wql-sql-for-wmi), see [Win32_OperatingSystem class](/windows/win32/cimwin32prov/win32-operatingsystem).
5964

60-
- Copyright statement
65+
- For [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], the `@@VERSION` results include:
6166

62-
- [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] edition
67+
- Edition: "Microsoft SQL Azure"
6368

64-
- Operating system version
69+
- Product level: "(RTM)"
6570

66-
For [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], the following information is returned.
71+
- Product version
6772

68-
- Edition- "Microsoft SQL Azure"
73+
- Build date
6974

70-
- Product level- "(RTM)"
71-
72-
- Product version
73-
74-
- Build date
75-
76-
- Copyright statement
75+
- Copyright statement
7776

7877
## Examples
7978

80-
### A: Return the current version of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)]
79+
### A: Return the current version of SQL Server
8180

82-
The following example shows returning the version information for the current installation.
81+
The following example shows the version information for an installation of [!INCLUDE [sssql25-md](../../includes/sssql25-md.md)]. Depending on the underlying host, virtual machine, or container operating system, the command returns different information.
8382

8483
```sql
8584
SELECT @@VERSION AS 'SQL Server Version';
8685
```
8786

88-
## Examples: [!INCLUDE [ssazuresynapse-md](../../includes/ssazuresynapse-md.md)] and [!INCLUDE [ssPDW](../../includes/sspdw-md.md)]
87+
- Windows Server 2019 virtual machine:
88+
89+
```output
90+
Microsoft SQL Server 2025 (RTM) - 17.0.1000.7 (X64)
91+
Oct 21 2025 12:05:57
92+
Copyright (C) 2025 Microsoft Corporation
93+
Enterprise Developer Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)
94+
```
95+
96+
- Windows 11 virtual machine:
97+
98+
```output
99+
Microsoft SQL Server 2025 (RTM) - 17.0.1000.7 (X64)
100+
Oct 21 2025 12:05:57
101+
Copyright (C) 2025 Microsoft Corporation
102+
Enterprise Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 26220: ) (VM)
103+
```
104+
105+
In this example, the output doesn't necessarily reflect the retail version of the operating system.
106+
107+
- Ubuntu Linux 24.04:
108+
109+
```output
110+
Microsoft SQL Server 2025 (RTM) - 17.0.1000.7 (X64)
111+
Oct 21 2025 12:05:57
112+
Copyright (C) 2025 Microsoft Corporation
113+
Enterprise Developer Edition (64-bit) on Linux (Ubuntu 24.04.3 LTS) <X64>
114+
```
115+
116+
## Examples: Azure Synapse Analytics and Analytics Platform System (PDW)
89117

90-
### B. Return the current version of [!INCLUDE [ssazuresynapse-md](../../includes/ssazuresynapse-md.md)]
118+
### B. Return the current version of Azure Synapse Analytics
91119

92120
```sql
93121
SELECT @@VERSION AS 'SQL Server PDW Version';
94122
```
95123

96124
## Related content
97125

98-
- [SERVERPROPERTY (Transact-SQL)](../../t-sql/functions/serverproperty-transact-sql.md)
126+
- [SERVERPROPERTY (Transact-SQL)](serverproperty-transact-sql.md)

0 commit comments

Comments
 (0)