Skip to content

Commit cbdab70

Browse files
authored
Merge pull request #34815 from WilliamDAssafMSFT/20250728-string-concat-unistr-ga
20250728 unistr and string concat GA
2 parents 6e8607a + dd16fba commit cbdab70

File tree

6 files changed

+38
-39
lines changed

6 files changed

+38
-39
lines changed

azure-sql/database/doc-changes-updates-release-notes-whats-new.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about the new features and documentation improvements for Azu
55
author: WilliamDAssafMSFT
66
ms.author: wiassaf
77
ms.reviewer: mathoma, randolphwest
8-
ms.date: 07/09/2025
8+
ms.date: 07/28/2025
99
ms.service: azure-sql-database
1010
ms.subservice: service-overview
1111
ms.topic: whats-new
@@ -55,16 +55,16 @@ The following table lists the features of Azure SQL Database that are currently
5555
| **Network Security Perimeter** | [Azure Network Security Perimeter](network-security-perimeter.md) allows organizations to define a logical network isolation boundary for PaaS resources (for example, Azure Storage and SQL Database) that are deployed outside your organization's virtual networks. It restricts public network access to PaaS resources outside of the perimeter, and access can be exempted by using explicit access rules for public inbound and outbound. |
5656
| **Query editor in the Azure portal** | The [query editor in the Azure portal](query-editor.md) allows you to run queries against your Azure SQL Database directly from a web browser. |
5757
| **Regular expression functions** | Regular expression (REGEX) functions return text based on values in a search pattern. [Regular expressions](/sql/relational-databases/regular-expressions/overview). |
58-
| **UNISTR (Transact-SQL)** | Azure SQL Database now supports the `UNISTR` T-SQL syntax for Unicode string literals. For more information, see [UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql).|
5958
| **Vector data type and functions** | Working with vector data is now easier in Azure SQL Database with the introduction of a new [vector data type](/sql/t-sql/data-types/vector-data-type?view=azuresqldb-current&preserve-view=true) and [vector functions](/sql/t-sql/functions/vector-functions-transact-sql?view=azuresqldb-current&preserve-view=true). For more information, see [Intelligent applications with Azure SQL Database](ai-artificial-intelligence-intelligent-applications.md#vectors).|
60-
| **\|\| (String concatenation) and \|\|= (Compound assignment) syntax support** | Azure SQL Database now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) Transact-SQL syntax.|
6159

6260
## General availability (GA)
6361

6462
The following table lists features of Azure SQL Database that have been made generally available (GA) within the last 12 months:
6563

6664
| Feature | GA Month | Details |
6765
| --- | --- | --- |
66+
| **UNISTR (Transact-SQL)** | July 2025 | Azure SQL Database now supports the `UNISTR` T-SQL syntax for Unicode string literals. For more information, see [UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql).|
67+
| **\|\| (String concatenation) and \|\|= (Compound assignment) syntax support** | July 2025 | Azure SQL Database now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) Transact-SQL syntax.|
6868
| **Degrees of Parallelism (DOP) feedback** | July 2025 | [DOP Feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldb-current&preserve-view=true) is now generally available for Azure SQL Database. For more information, see [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318). |
6969
| **Audit re-architecture** | July 2025 | Increased availability and reliability of server audits through a re-architecture of auditing in Azure SQL Database that is closely aligned with SQL Server and Azure SQL Managed Instance. For more information, see [Auditing](auditing-overview.md#enhancements-to-performance-availability-and-reliability-in-server-auditing-for-azure-sql-database-july-2025-ga).|
7070
| **Hyperscale increased log generation rate** | May 2025 | The transaction log generation rate in Azure SQL Database Hyperscale single databases has been increased from 100 MiB/s to 150 MiB/s for premium-series and premium-series memory optimized hardware. For more information, read [Blog: Enhancements to Azure SQL Database Hyperscale](https://aka.ms/HSenhancements).|
@@ -102,6 +102,8 @@ Learn about significant changes to the Azure SQL Database documentation. For pre
102102

103103
| Changes | Details |
104104
| --- | --- |
105+
| **UNISTR** | Azure SQL Database now supports the `UNISTR`. This syntax is now generally available. For more information, see [UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql). |
106+
| **\| \| and \| \| = string concatenation support** | Azure SQL Database now supports \| \| and \| \| = compound assignment T-SQL syntax. This syntax is now generally available. For more information, see [|| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql) and [||= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql). |
105107
| **Degrees of Parallelism (DOP) feedback** | [DOP Feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldb-current&preserve-view=true) is now generally available for Azure SQL Database. For more information, see [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318). |
106108
| **Convert to Hyperscale with geo-replicas (preview)** |The ability to [convert a geo-replicated database non-Hyperscale database to Hyperscale](convert-to-hyperscale.md) using T-SQL, REST API, PowerShell, or Azure CLI is currently a preview feature. For more information, see [Blog: Hyperscale conversion support for geo-replicas](https://aka.ms/hs-conversion-geodr-preview). |
107109
| **Audit re-architecture GA** | Enhancements to performance, availability, and reliability in server auditing for Azure SQL Database. For more information, see [Auditing](auditing-overview.md#enhancements-to-performance-availability-and-reliability-in-server-auditing-for-azure-sql-database-july-2025-ga). |

azure-sql/managed-instance/doc-changes-updates-release-notes-whats-new.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about the new features and documentation improvements for Azu
55
author: MashaMSFT
66
ms.author: mathoma
77
ms.reviewer: wiassaf, mathoma
8-
ms.date: 07/16/2025
8+
ms.date: 07/28/2025
99
ms.service: azure-sql-managed-instance
1010
ms.subservice: service-overview
1111
ms.topic: whats-new
@@ -48,9 +48,7 @@ The following table lists the features of Azure SQL Managed Instance that are cu
4848
|[SDK-style SQL project](/sql/azure-data-studio/extensions/sql-database-project-extension-sdk-style-projects) | Use [Microsoft.Build.Sql](https://www.nuget.org/packages/Microsoft.Build.Sql) for SDK-style SQL projects in the SQL Database Projects extension in Azure Data Studio or Visual Studio Code. SDK-style SQL projects are especially advantageous for applications shipped through pipelines or built in cross-platform environments.|
4949
|[Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) | Support for cross-instance message exchange using Service Broker between instances of Azure SQL Managed Instance, and between SQL Server and Azure SQL Managed Instance. |
5050
|[Threat detection](threat-detection-configure.md) | Threat detection notifies you of security threats detected to your database. |
51-
|[UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql)| Azure SQL Managed Instance now supports the `UNISTR` T-SQL syntax for Unicode string literals.|
5251
|[Vector data type and functions](/sql/t-sql/data-types/vector-data-type?view=azuresqldb-current&preserve-view=true) | Working with vector data is now easier in Azure SQL Managed Instance with the [Always-up-to-date update policy](update-policy.md#always-up-to-date-update-policy) with the introduction of a new [vector data type](/sql/t-sql/data-types/vector-data-type?view=azuresqlmi-current&preserve-view=true) and [vector functions](/sql/t-sql/functions/vector-functions-transact-sql?view=azuresqlmi-current&preserve-view=true). For more information, see [Intelligent applications with Azure SQL Managed Instance](ai-artificial-intelligence-intelligent-applications.md#vectors). |
53-
|[\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) syntax support | Azure SQL Managed Instance now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) Transact-SQL syntax.|
5452

5553

5654
## General availability (GA)
@@ -59,6 +57,8 @@ The following table lists features of Azure SQL Managed Instance that have been
5957

6058
| Feature | GA Month | Details |
6159
| ---| --- |--- |
60+
|[UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql) | July 2025 | Azure SQL Managed Instance now supports the `UNISTR` T-SQL syntax for Unicode string literals.|
61+
|[\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) syntax support | July 2025 |Azure SQL Managed Instance now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) Transact-SQL syntax.|
6262
| [Degrees of parallelism (DOP) feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldb-mi-current&preserve-view=true) | July 2025| DOP feedback improves query performance by identifying parallelism inefficiencies for repeating queries, based on elapsed time and waits. For more information, see the [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318) blog. |
6363
|[Zone redundancy for General Purpose](high-availability-sla-local-zone-redundancy.md#zone-redundant-availability) | June 2025| Deploy your General Purpose SQL Managed Instance to multiple availability zones to improve the availability of your instance in the event of a disaster. |
6464
|[Invoke an HTTPS REST endpoint SP](/sql/relational-databases/system-stored-procedures/sp-invoke-external-rest-endpoint-transact-sql) | June 2025 | Use the `sp_invoke_external_rest_endpoint` stored procedure to invoke an HTTPS REST endpoint provided as an input argument to the procedure. |
@@ -84,6 +84,8 @@ Learn about significant changes to the Azure SQL Managed Instance documentation.
8484

8585
| Changes | Details |
8686
| --- | --- |
87+
| **UNISTR (Transact-SQL)** | Azure SQL Managed Instance now supports the `UNISTR` T-SQL syntax for Unicode string literals. This capability is now generally available in an Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy. For more information, see [UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql).|
88+
| **\|\| (String concatenation) and \|\|= (Compound assignment) syntax support** | Azure SQL Managed Instance now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql) Transact-SQL syntax. This capability is now generally available in an Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy.|
8789
| **Degrees of parallelism (DOP) feedback GA** | DOP feedback improves query performance by identifying parallelism inefficiencies for repeating queries, based on elapsed time and waits. DOP feedback is now generally available for Azure SQL Managed Instance with the [Always-up-to-date update policy](update-policy.md#always-up-to-date-update-policy). To learn more, see [Degrees of parallelism (DOP) feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldbmi-current&preserve-view=true). For additional information, see the [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318) blog. |
8890
|**Migrate SQL Server instance to Azure preview** | Migrate your SQL Server instance enabled by Azure Arc to Azure SQL Managed Instance through the Azure portal. This feature is currently in preview. Review [Migrate SQL Server instance to Azure SQL Managed Instance](/sql/sql-server/azure-arc/migrate-to-azure-sql-managed-instance) to learn more. |
8991

docs/includes/fabric-sqldb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
author: WilliamDAssafMSFT
33
ms.author: wiassaf
4-
ms.date: 04/03/2024
4+
ms.date: 07/28/2025
55
ms.service: sql
66
ms.topic: include
77
---
8-
SQL database in [!INCLUDE [fabric](fabric.md)]
8+
SQL database in [!INCLUDE [fabric](fabric.md)] Preview

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "UNISTR (Transact-SQL)"
33
description: The UNISTR function provides support for Unicode string literals and returns the Unicode output for the input expression.
4-
author: abhimantiwari
5-
ms.author: abhtiwar
6-
ms.reviewer: randolphwest, wiassaf, umajay
7-
ms.date: 05/19/2025
4+
author: WilliamDAssafMSFT
5+
ms.author: wiassaf
6+
ms.reviewer: abhtiwar, umajay, randolphwest
7+
ms.date: 07/28/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -17,14 +17,12 @@ helpviewer_keywords:
1717
- "unistr [SQL Server], UNISTR function"
1818
dev_langs:
1919
- "TSQL"
20-
monikerRange: "=azuresqldb-current || =azuresqldb-mi-current || =fabric"
20+
monikerRange: "=sql-server-ver17 || =azuresqldb-current || =fabric || =azuresqldb-mi-current"
2121
---
22-
# UNISTR (Transact-SQL) preview
22+
# UNISTR (Transact-SQL)
2323

2424
[!INCLUDE [sqlserver2025-asdb-asmi-fabric](../../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
2525

26-
[!INCLUDE [preview](../../includes/preview.md)]
27-
2826
`UNISTR` provides support for Unicode string literals by letting you specify the Unicode encoding value of characters in the string. `UNISTR` returns the Unicode characters corresponding to the input expression, as defined by the Unicode standard.
2927

3028
The escape sequence for a Unicode character can be specified in the form of `\xxxx` or `\+xxxxxx`, where `xxxx` is a valid UTF-16 codepoint value, and `xxxxxx` is a valid Unicode codepoint value. You can look up Unicode codepoint values in the [Unicode Code Charts](https://www.unicode.org/charts).
@@ -52,6 +50,8 @@ Key benefits of `UNISTR` include:
5250

5351
- **Custom escape characters**: You can define a custom escape character to perform the necessary conversion of Unicode values into a string character set.
5452

53+
The `||` pipes operator is available in Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy.
54+
5555
### Code page support
5656

5757
The `UNISTR` function isn't compatible with legacy code pages, meaning it doesn't support collations that use non-Unicode character sets. These collations with legacy code pages can be identified using the following query.

docs/t-sql/language-elements/compound-assignment-pipes-transact-sql.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "||= (Compound assignment) (Transact-SQL)"
33
description: "Use ||= to concatenate an expression with the value of a character or binary string variable, and assign the resulting expression to the variable."
4-
author: abhimantiwari
5-
ms.author: abhtiwar
6-
ms.reviewer: randolphwest, wiassaf, umajay
7-
ms.date: 05/19/2025
4+
author: WilliamDAssafMSFT
5+
ms.author: wiassaf
6+
ms.reviewer: abhtiwar, randolphwest, umajay
7+
ms.date: 07/28/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -18,22 +18,17 @@ helpviewer_keywords:
1818
- "||= (string concatenation with compound assignment)"
1919
dev_langs:
2020
- "TSQL"
21-
monikerRange: "=azuresqldb-current || =fabric || =azuresqldb-mi-current"
21+
monikerRange: "=sql-server-ver17 || =azuresqldb-current || =fabric || =azuresqldb-mi-current"
2222
---
2323

24-
# ||= (Compound assignment) (Transact-SQL) preview
24+
# ||= (Compound assignment) (Transact-SQL)
2525

2626
[!INCLUDE [sqlserver2025-asdb-asmi-fabric](../../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
2727

28-
[!INCLUDE [preview](../../includes/preview.md)]
29-
3028
The `||=` concatenation with compound assignment operator can be used to [concatenate an expression](string-concatenation-pipes-transact-sql.md) with the value of a character or binary string variable, and then assign the resulting expression to the variable.
3129

3230
The `||=` operator supports the same behavior as the [+= operator](string-concatenation-equal-transact-sql.md) for character and binary strings.
3331

34-
> [!NOTE]
35-
> The `||=` pipes operator is available in Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy.
36-
3732
:::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)
3833

3934
## Syntax
@@ -67,6 +62,9 @@ If the result of the concatenation of strings exceeds the limit of 8,000 bytes,
6762

6863
An explicit conversion to character data must be used when concatenating binary strings and any characters between the binary strings.
6964

65+
The `||=` pipes operator is available in Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy.
66+
67+
7068
### Zero-length strings and characters
7169

7270
The `||=` (string concatenation) operator behaves differently when it works with an empty, zero-length string than when it works with `NULL`, or unknown values. A zero-length character string can be specified as two single quotation marks without any characters inside the quotation marks. A zero-length binary string can be specified as `0x` without any byte values specified in the hexadecimal constant. Concatenating a zero-length string always concatenates the two specified strings.

0 commit comments

Comments
 (0)