Skip to content

Commit c285089

Browse files
committed
Publish T77 Features for Azure SQL DB (REGEX, Fuzzy String, DATEADD bigint)
1 parent dc4edfa commit c285089

21 files changed

+1345
-34
lines changed

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

+9-1
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: 02/12/2025
8+
ms.date: 02/25/2025
99
ms.service: azure-sql-database
1010
ms.subservice: service-overview
1111
ms.topic: whats-new
@@ -39,8 +39,11 @@ The following table lists the features of Azure SQL Database that are currently
3939
4040
| Feature | Details |
4141
| --- | --- |
42+
| **Approximate or fuzzy string matching**| Check if two strings are similar, and calculate the difference between two strings. Use this capability to identify strings that might be different because of character corruption. [What is fuzzy string matching?](/sql/relational-databases/fuzzy-string-match/overview)|
4243
| **Availability metric**| Availability is now a metric in the Azure Monitor metrics. Driven by a variety of user connection failures, you can [monitor and configure alerts on Azure SQL Database Availability](monitoring-metrics-alerts.md#availability-metric). |
44+
| **DATEADD number allows bigint** | For `DATEADD (datepart , number , date )`, number can be expressed as a bigint. [DATEADD (Transact-SQL)](/sql/t-sql/functions/dateadd-transact-sql)|
4345
| **Copilot skills in Azure SQL Database** | Microsoft Copilot skills in Azure SQL Database include two Azure portal experiences: [Natural language to SQL](../copilot/query-editor-natural-language-to-sql-copilot.md) within the [Azure portal query editor](query-editor.md), and [Azure Copilot integration](../copilot/copilot-azure-sql-overview.md#microsoft-copilot-in-azure-enhanced-scenarios). |
46+
| **DATEADD number allows bigint** | For `DATEADD (datepart , number , date )`, number can be expressed as a **bigint**. For more information, see [DATEADD (Transact-SQL)](/sql/t-sql/functions/dateadd-transact-sql).|
4447
| **Database watcher for Azure SQL** |[Database watcher](../database-watcher-overview.md) is a managed monitoring solution for database services in the Azure SQL family. Database watcher collects in-depth workload monitoring data to give you a detailed view of database performance, configuration, and health. Learn more about [database watcher](https://aka.ms/dbwatcher-preview-announcement). |
4548
| **Degrees of Parallelism (DOP) feedback** | [DOP Feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldb-current&preserve-view=true) is currently available as a limited preview. For more information and how to apply for the preview, see [Announcing Degree of Parallelism Feedback Limited Preview](https://techcommunity.microsoft.com/t5/azure-sql-blog/announcing-degree-of-parallelism-feedback-limited-preview/ba-p/3806924). |
4649
| **Elastic queries** | The [elastic queries](elastic-query-overview.md) feature allows for cross-database queries in Azure SQL Database. |
@@ -54,7 +57,9 @@ The following table lists the features of Azure SQL Database that are currently
5457
| **Manually initiate cutover for conversion to Hyperscale** | When converting an Azure SQL Database to the Hyperscale service tier, you have a new [option to manually initiate the cutover](https://aka.ms/hs-conversion-v2-preview). For more information, see [Convert an existing database to Hyperscale](convert-to-hyperscale.md). |
5558
| **Microsoft Entra server principals** | The ability to [create server principals (logins) for Microsoft Entra identities](authentication-azure-ad-logins.md) in Azure SQL Database is in preview. |
5659
| **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. |
60+
| **Regular expression functions** | Regular expression (REGEX) functions return text based on values in a search pattern. [Regular expressions](/sql/relational-databases/regular-expressions/overview). |
5761
| **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. |
62+
| **Regular expression functions** | Regular expression (REGEX) functions return text based on values in a search pattern. [Regular expressions](/sql/relational-databases/regular-expressions/overview). |
5863
| **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).|
5964
| **Vector data type** | 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 [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).|
6065
| **\|\| (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.|
@@ -93,6 +98,9 @@ Learn about significant changes to the Azure SQL Database documentation. For pre
9398

9499
| Changes | Details |
95100
| --- | --- |
101+
| **Approximate or fuzzy string matching (preview)**| Check if two strings are similar, and calculate the difference between two strings. Use this capability to identify strings that might be different because of character corruption. [What is fuzzy string matching?](/sql/relational-databases/fuzzy-string-match/overview)|
102+
| **DATEADD number allows bigint (preview)** | For `DATEADD (datepart , number , date )`, number can be expressed as a **bigint**. For more information, see [DATEADD (Transact-SQL)](/sql/t-sql/functions/dateadd-transact-sql).|
103+
| **Regular expression functions (preview)** | Regular expression (REGEX) functions return text based on values in a search pattern. For more information, see [Regular expressions](/sql/relational-databases/regular-expressions/overview). |
96104
| **sys.dm_database_backups** | The [sys.dm_database_backups](/sql/relational-databases/system-dynamic-management-views/sys-dm-database-backups-azure-sql-database?view=azuresqldb-current&preserve-view=true) dynamic management view returns information about the [automated backups of a database](automated-backups-overview.md). This DMV is now generally available. |
97105
| **Manually initiate cutover for conversion to Hyperscale** | When converting an Azure SQL Database to the Hyperscale service tier, [you have a new option to manually initiate the cutover](https://aka.ms/hs-conversion-v2-preview). For more information, see [Convert an existing database to Hyperscale](convert-to-hyperscale.md). This feature is currently in preview.|
98106
| **Import bacpac file size increase** | The limit for an imported bacpac file size has been increased from 4 GB to 150 GB. For more information on importing a bacpac file generated from SqlPackage, see [Quickstart: Import a bacpac file to a database in Azure SQL Database](database-import.md).|

docs/includes/preview.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.service: sql
4+
ms.topic: include
5+
ms.date: 12/19/2024
6+
ms.author: mikeray
7+
---
8+
9+
> [!NOTE]
10+
> As a preview feature, the technology presented in this article is subject to [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
11+
>
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.author: mikeray
4+
ms.date: 12/23/2024
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
9+
One or more characters that specify the modifiers used for searching for matches. Type is **varchar** or **char**, with a maximum of 30 characters.
10+
11+
For example, `ims`. The default is `c`. If an empty string `(' ')` is provided, it will be treated as the default value `('c')`. Supply `c` or any other character expressions. If flag contains multiple contradictory characters, then SQL Server uses the last character.
12+
13+
For example, if you specify `ic` the regex returns case-sensitive matching.
14+
15+
If the value contains a character other than those listed at [Supported flag values](#supported-flag-values), the query returns an error like the following example:
16+
17+
```output
18+
Invalid flag provided. '<invalid character>' are not valid flags. Only {c,i,s,m} flags are valid.
19+
```
20+
21+
##### Supported flag values
22+
23+
| Flag | Description |
24+
|------|-------------|
25+
| i | Case-insensitive (default false) |
26+
| m | Multi-line mode: `^` and `$` match begin/end line in addition to begin/end text (default false) |
27+
| s | Let `.` match `\n` (default false) |
28+
| c | Case-insensitive (default true) |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.author: mikeray
4+
ms.date: 12/23/2024
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
9+
| Function | Description |
10+
| --- | --- |
11+
| [REGEXP_LIKE](../t-sql/functions/regexp-like-transact-sql.md) | Returns a Boolean value that indicates whether the text input matches the regex pattern.|
12+
| [REGEXP_REPLACE](../t-sql/functions/regexp-replace-transact-sql.md) |Returns a modified source string replaced by a replacement string, where occurrence of the regex pattern found.|
13+
| [REGEXP_SUBSTR](../t-sql/functions/regexp-substr-transact-sql.md) | Extracts parts of a string based on a regular expression pattern. <br><br> Returns Nth occurrence of a substring that matches the regex pattern.|
14+
| [REGEXP_INSTR](../t-sql/functions/regexp-instr-transact-sql.md) | Returns the starting or ending position of the matched substring, depending on the option supplied.|
15+
| [REGEXP_COUNT](../t-sql/functions/regexp-count-transact-sql.md) | Returns a count of the number of times that regex pattern occurs in a string.|
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.author: mikeray
4+
ms.date: 12/23/2024
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
9+
Regular expression pattern to match. Usually a text literal
10+
11+
Data types: **char**, **nchar**, **varchar**, or **nvarchar**. `pattern_expression` supports a maximum character length of 8,000 bytes. 
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.author: mikeray
4+
ms.date: 12/23/2024
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
9+
An expression of a character string.
10+
11+
Can be a constant, variable, or column of character string.
12+
13+
Data types: **char**, **nchar**, **varchar**, or **nvarchar**.

0 commit comments

Comments
 (0)