Skip to content

Commit 963a4fa

Browse files
authored
Merge pull request #35121 from MicrosoftDocs/main
Auto Publish – main to live - 2025-08-25 22:30 UTC
2 parents 345030b + 0e5e5eb commit 963a4fa

7 files changed

Lines changed: 88 additions & 101 deletions

File tree

azure-sql/includes/passwordless/associate-managed-identity-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you are working with Git Bash, be careful of path conversions when using full
3131

3232
# [Azure Spring Apps](#tab/spring-apps-identity)
3333

34-
You can assign a managed identity to an Azure Spring Apps instance with the [az spring app identity assign](/cli/azure/spring/app/identity) command.
34+
You can assign a managed identity to your Azure Spring Apps instance using the [az spring app identity assign](/azure/spring-apps/basic-standard/how-to-manage-user-assigned-managed-identities?tabs=azure-cli&pivots=sc-standard) command command in the Azure CLI.
3535

3636
```azurecli
3737
az spring app identity assign \

azure-sql/includes/passwordless/service-connector-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You can use Service Connector to create a connection between an Azure compute ho
3333
3434
# [Azure Spring Apps](#tab/spring-connector)
3535
36-
If you're using Azure Spring Apps, use the [az spring connection](/cli/azure/spring/connection/create) command:
36+
If you're using Azure Spring Apps, use the [az spring connection create](/azure/service-connector/quickstart-portal-spring-cloud-connection?tabs=using-Managed-Identity&pivots=azure-cli) command to establish a service connection via Azure CLI.
3737
3838
```azurecli
3939
az spring connection create storage-blob \
Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
title: "sysdac_history_internal (Transact-SQL)"
3-
description: Data-tier Application Tables - sysdac_history_internal
3+
description: sysdac_history_internal contains information about the actions taken to manage data-tier applications (DAC).
44
author: VanMSFT
55
ms.author: vanto
6-
ms.date: "03/14/2017"
6+
ms.reviewer: randolphwest
7+
ms.date: 08/25/2025
78
ms.service: sql
89
ms.subservice: system-objects
910
ms.topic: "reference"
@@ -16,62 +17,64 @@ dev_langs:
1617
- "TSQL"
1718
---
1819
# Data-tier Application Tables - sysdac_history_internal
20+
1921
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
2022

21-
Contains information about the actions taken to manage data-tier applications (DAC). This table is stored in the **dbo** schema of the **msdb** database.
22-
23-
|Column name|Data type|Description|
24-
|-----------------|---------------|-----------------|
25-
|**action_id**|**int**|Identifier of the action|
26-
|**sequence_id**|**int**|Identifies a step within an action.|
27-
|**instance_id**|**uniqueidentifier**|Identifier of the DAC instance. This column can be joined on the **instance_id** column in [dbo.sysdac_instances (Transact-SQL)](../../relational-databases/system-catalog-views/data-tier-application-views-dbo-sysdac-instances.md).|
28-
|**action_type**|**tinyint**|Identifier of the action type:<br /><br /> **0** = deploy<br /><br /> **1** = create<br /><br /> **2** = rename<br /><br /> **3** = detach<br /><br /> **4** = delete|
29-
|**action_type_name**|**varchar(19)**|Name of the action type:<br /><br /> **deploy**<br /><br /> **create**<br /><br /> **rename**<br /><br /> **detach**<br /><br /> **delete**|
30-
|**dac_object_type**|**tinyint**|Identifier of the type of object affected by the action:<br /><br /> **0** = dacpac<br /><br /> **1** = login<br /><br /> **2** = database|
31-
|**dac_object_type_name**|**varchar(8)**|Name of the type of object affected by the action:<br /><br /> **dacpac** = DAC instance<br /><br /> **login**<br /><br /> **database**|
32-
|**action_status**|**tinyint**|Code identifying the current status of the action:<br /><br /> **0** = pending<br /><br /> **1** = success<br /><br /> **2** = fail|
33-
|**action_status_name**|**varchar(11)**|Current status of the action:<br /><br /> **pending**<br /><br /> **success**<br /><br /> **fail**|
34-
|**Required**|**bit**|Used by the [!INCLUDE[ssDE](../../includes/ssde-md.md)] when rolling back a DAC operation.|
35-
|**dac_object_name_pretran**|**sysname**|Name of the object before the transaction containing the action is committed. Used only for databases and logins.|
36-
|**dac_object_name_posttran**|**sysname**|Name of the object after the transaction containing the action is committed. Used only for databases and logins.|
37-
|**sqlscript**|**nvarchar(max)**|[!INCLUDE[tsql](../../includes/tsql-md.md)] script that implements an action on a database or login.|
38-
|**payload**|**varbinary(max)**|DAC package definition saved in a binary encoded string.|
39-
|**Comments**|**varchar(max)**|Records the login of a user who accepted potential data loss in a DAC upgrade.|
40-
|**error_string**|**nvarchar(max)**|Error message generated if the action encounters an error.|
41-
|**created_by**|**sysname**|The login that launched the action that created this entry.|
42-
|**date_created**|**datetime**|The date and time this entry was created.|
43-
|**date_modified**|**datetime**|The date and time the entry was last modified.|
44-
45-
## Remarks
46-
DAC management actions, such as deploying or deleting a DAC, generate multiple steps. Each action is assigned an action identifier. Each step is assigned a sequence number and a row in **sysdac_history_internal**, where the status of the step is recorded. Each row is created when the action step starts, and is updated as needed to reflect the status of the operation. For example, a deploy DAC action could be assigned **action_id** 12 and get four rows in **sysdac_history_internal**:
47-
48-
| action_id | sequence_id | action_type_name | dac_object_type_name |
49-
| --------- | ----------- | ---------------- | -------------------- |
50-
|12|0|create|dacpac|
51-
|12|1|create|login|
52-
|12|2|create|database|
53-
|12|3|rename|database|
54-
55-
DAC operations, such as delete, do not remove rows from **sysdac_history_internal**. You can use the following query to manually delete the rows for DACs no longer deployed on an instance of the [!INCLUDE[ssDE](../../includes/ssde-md.md)]:
56-
57-
```sql
58-
DELETE FROM msdb.dbo.sysdac_history_internal
59-
WHERE instance_id NOT IN
60-
(SELECT instance_id
61-
FROM msdb.dbo.sysdac_instances_internal);
62-
```
63-
64-
Deleting rows for active DACs does not impact DAC operations; the only impact is that you will not be able to report the full history for the DAC.
65-
23+
Contains information about the actions taken to manage data-tier applications (DAC). This table is stored in the `dbo` schema of the `msdb` database.
24+
25+
| Column name | Data type | Description |
26+
| --- | --- | --- |
27+
| `action_id` | **int** | Identifier of the action |
28+
| `sequence_id` | **int** | Identifies a step within an action. |
29+
| `instance_id` | **uniqueidentifier** | Identifier of the DAC instance. This column can be joined on the `instance_id` column in [dbo.sysdac_instances](../system-catalog-views/data-tier-application-views-dbo-sysdac-instances.md). |
30+
| `action_type` | **tinyint** | Identifier of the action type:<br /><br />`0` = deploy<br />`1` = create<br />`2` = rename<br />`3` = register<br />`4` = create objects<br />`5` = detach<br />`6` = delete<br />`7` = data transfer<br />`8` = disable constraints<br />`9` = move data<br />`10` = enable constraints<br />`11` = copy permissions<br />`12` = set readonly<br />`13` = upgrade<br />`14` = unregister<br />`15` = update registration<br />`16` = set read/write<br />`17` = disconnect users |
31+
| `action_type_name` | **varchar(19)** | Name of the action type:<br /><br />- `deploy`<br />- `create`<br />- `rename`<br />- `register`<br />- `create objects`<br />- `detach`<br />- `delete`<br />- `data transfer`<br />- `disable constraints`<br />- `move data`<br />- `enable constraints`<br />- `copy permissions`<br />- `set readonly`<br />- `upgrade`<br />- `unregister`<br />- `update registration`<br />- `set readwrite`<br />- `disconnect users` |
32+
| `dac_object_type` | **tinyint** | Identifier of the type of object affected by the action:<br /><br />`0` = dacpac<br />`1` = login<br />`2` = database |
33+
| `dac_object_type_name` | **varchar(8)** | Name of the type of object affected by the action:<br /><br />- `dacpac` = DAC instance<br />- `login`<br />- `database` |
34+
| `action_status` | **tinyint** | Code identifying the current status of the action:<br /><br />`0` = not started<br />`1` = pending<br />`2` = success<br />`3` = fail<br />`4` = rollback |
35+
| `action_status_name` | **varchar(11)** | Current status of the action:<br /><br />- `not started`<br />- `pending`<br />- `success`<br />- `fail`<br />- `rollback` |
36+
| `required` | **bit** | Used by the [!INCLUDE [ssDE](../../includes/ssde-md.md)] when rolling back a DAC operation. |
37+
| `dac_object_name_pretran` | **sysname** | Name of the object before the transaction containing the action is committed. Used only for databases and logins. |
38+
| `dac_object_name_posttran` | **sysname** | Name of the object after the transaction containing the action is committed. Used only for databases and logins. |
39+
| `sqlscript` | **nvarchar(max)** | [!INCLUDE [tsql](../../includes/tsql-md.md)] script that implements an action on a database or login. |
40+
| `payload` | **varbinary(max)** | DAC package definition saved in a binary encoded string. |
41+
| `comments` | **varchar(max)** | Records the login of a user who accepted potential data loss in a DAC upgrade. |
42+
| `error_string` | **nvarchar(max)** | Error message generated if the action encounters an error. |
43+
| `created_by` | **sysname** | The login that launched the action that created this entry. |
44+
| `date_created` | **datetime** | The date and time this entry was created. |
45+
| `date_modified` | **datetime** | The date and time the entry was last modified. |
46+
47+
## Remarks
48+
49+
DAC management actions, such as deploying or deleting a DAC, generate multiple steps. Each action is assigned an action identifier. Each step is assigned a sequence number and a row in `sysdac_history_internal`, where the status of the step is recorded. Each row is created when the action step starts, and is updated as needed to reflect the status of the operation. For example, a deploy DAC action could be assigned `action_id` 12 and get four rows in `sysdac_history_internal`:
50+
51+
| `action_id` | `sequence_id` | `action_type_name` | `dac_object_type_name` |
52+
| --- | --- | --- | --- |
53+
| 12 | 0 | create | dacpac |
54+
| 12 | 1 | create | login |
55+
| 12 | 2 | create | database |
56+
| 12 | 3 | rename | database |
57+
58+
DAC operations, such as delete, don't remove rows from `sysdac_history_internal`. You can use the following query to manually delete the rows for DACs no longer deployed on an instance of the [!INCLUDE [ssDE](../../includes/ssde-md.md)]:
59+
60+
```sql
61+
DELETE msdb.dbo.sysdac_history_internal
62+
WHERE instance_id NOT IN (
63+
SELECT instance_id FROM msdb.dbo.sysdac_instances_internal
64+
);
65+
```
66+
67+
Deleting rows for active DACs doesn't affect DAC operations; the only effect is that you can't report the full history for the DAC.
68+
6669
> [!NOTE]
67-
> Currently, there is no mechanism for deleting **sysdac_history_internal** rows on [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)].
68-
69-
## Permissions
70-
Requires membership in the sysadmin fixed server role. Read-only access to this view is available to all users with permissions to connect to the master database.
71-
72-
## See Also
73-
[Data-tier Applications](../../relational-databases/data-tier-applications/data-tier-applications.md)
74-
[dbo.sysdac_instances &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/data-tier-application-views-dbo-sysdac-instances.md)
75-
[sysdac_instances_internal &#40;Transact-SQL&#41;](../../relational-databases/system-tables/data-tier-application-tables-sysdac-instances-internal.md)
76-
77-
70+
> Currently, there's no mechanism for deleting `sysdac_history_internal` rows on [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)].
71+
72+
## Permissions
73+
74+
Requires membership in the **sysadmin** fixed server role. Read-only access to this view is available to all users with permissions to connect to the `master` database.
75+
76+
## Related content
77+
78+
- [Data-tier Applications](../../relational-databases/data-tier-applications/data-tier-applications.md)
79+
- [dbo.sysdac_instances](../system-catalog-views/data-tier-application-views-dbo-sysdac-instances.md)
80+
- [sysdac_instances_internal](data-tier-application-tables-sysdac-instances-internal.md)

docs/reporting-services/report-server-sharepoint/powershell-cmdlets-for-reporting-services-sharepoint-mode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ When you install SQL Server 2016 Reporting Services SharePoint mode, PowerShell
4747
Add-PSSnapin Microsoft.SharePoint.PowerShell
4848
```
4949
50-
For more information, see [Use Windows PowerShell to administer SharePoint 2013](/powershell/module/sharepoint-server/).
51-
5250
### Open the SharePoint Management Shell and run cmdlets
5351
5452
1. Select the **Start** button.

docs/t-sql/functions/current-date-transact-sql.md

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: CURRENT_DATE returns the current database system date as a date val
44
author: PratimDasgupta
55
ms.author: prdasgu
66
ms.reviewer: randolphwest
7-
ms.date: 08/08/2024
7+
ms.date: 08/25/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -30,13 +30,13 @@ helpviewer_keywords:
3030
- "time [SQL Server], system"
3131
dev_langs:
3232
- "TSQL"
33-
monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azuresqldb-mi-current"
33+
monikerRange: ">=sql-server-ver17 || >=sql-server-linux-ver17 || >=aps-pdw-2016 || =azuresqldb-current || =azuresqldb-mi-current"
3434
---
3535
# CURRENT_DATE (Transact-SQL)
3636

37-
[!INCLUDE [asdb-asdbmi](../../includes/applies-to-version/asdb-asdbmi.md)]
37+
[!INCLUDE [sqlserver2025-asdb-asmi-fabricsqldb](../../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
3838

39-
In [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], this function returns the current database system date as a **date** value, without the database time and time zone offset. `CURRENT_DATE` derives this value from the underlying operating system on the [!INCLUDE [ssde-md](../../includes/ssde-md.md)] runs.
39+
This function returns the current database system date as a **date** value, without the database time and time zone offset. `CURRENT_DATE` derives this value from the underlying operating system on the [!INCLUDE [ssde-md](../../includes/ssde-md.md)] runs.
4040

4141
> [!NOTE]
4242
> `SYSDATETIME` and `SYSUTCDATE` have more precision, as measured by fractional seconds precision, than `GETDATE` and `GETUTCDATE`. The `SYSDATETIMEOFFSET` function includes the system time zone offset. You can assign `SYSDATETIME`, `SYSUTCDATETIME`, and `SYSDATETIMEOFFSET` to a variable of any of the date and time types.
@@ -49,8 +49,6 @@ See [Date and time data types and functions](date-and-time-data-types-and-functi
4949

5050
## Syntax
5151

52-
[!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] only:
53-
5452
```syntaxsql
5553
CURRENT_DATE
5654
```
@@ -77,18 +75,14 @@ These examples use the system functions that return current date and time values
7775

7876
```sql
7977
SELECT SYSDATETIME(),
80-
SYSDATETIMEOFFSET(),
81-
SYSUTCDATETIME(),
82-
CURRENT_TIMESTAMP,
83-
GETDATE(),
84-
GETUTCDATE(),
85-
CURRENT_DATE;
78+
SYSDATETIMEOFFSET(),
79+
SYSUTCDATETIME(),
80+
CURRENT_TIMESTAMP,
81+
GETDATE(),
82+
GETUTCDATE(),
83+
CURRENT_DATE;
8684
```
8785

88-
> [!NOTE]
89-
> [CURRENT_DATE (Transact-SQL)](current-date-transact-sql.md) is available in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] only.
90-
91-
9286
[!INCLUDE [ssresult-md](../../includes/ssresult-md.md)]
9387

9488
| Data type | Value |
@@ -104,18 +98,15 @@ SELECT SYSDATETIME(),
10498
### B. Get the current system date
10599

106100
```sql
107-
SELECT CONVERT(DATE, SYSDATETIME()),
108-
CONVERT(DATE, SYSDATETIMEOFFSET()),
109-
CONVERT(DATE, SYSUTCDATETIME()),
110-
CONVERT(DATE, CURRENT_TIMESTAMP),
111-
CONVERT(DATE, GETDATE()),
112-
CONVERT(DATE, GETUTCDATE()),
113-
CURRENT_DATE;
101+
SELECT CONVERT (DATE, SYSDATETIME()),
102+
CONVERT (DATE, SYSDATETIMEOFFSET()),
103+
CONVERT (DATE, SYSUTCDATETIME()),
104+
CONVERT (DATE, CURRENT_TIMESTAMP),
105+
CONVERT (DATE, GETDATE()),
106+
CONVERT (DATE, GETUTCDATE()),
107+
CURRENT_DATE;
114108
```
115109

116-
> [!NOTE]
117-
> [CURRENT_DATE (Transact-SQL)](current-date-transact-sql.md) is available in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] only.
118-
119110
[!INCLUDE [ssresult-md](../../includes/ssresult-md.md)]
120111

121112
| Data type | Value |

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: DATEADD returns a date modified by the specified date part.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/19/2025
7+
ms.date: 08/25/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -33,10 +33,6 @@ This function adds a *number* (a signed integer) to a *datepart* of an input *da
3333

3434
See [Date and time data types and functions](date-and-time-data-types-and-functions-transact-sql.md) for an overview of all [!INCLUDE [tsql](../../includes/tsql-md.md)] date and time data types and functions.
3535

36-
> [!NOTE]
37-
> `DATEADD` 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.
38-
39-
4036
:::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)
4137

4238
## Syntax
@@ -51,9 +47,6 @@ DATEADD (datepart , number , date )
5147

5248
The part of *date* to which `DATEADD` adds an **int** *number*.
5349

54-
> [!NOTE]
55-
> In [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] and [!INCLUDE [fabric](../../includes/fabric-sqldb.md)], *number* can be expressed as a **bigint**. This feature is in preview.
56-
5750
This table lists all valid *datepart* arguments. `DATEADD` doesn't accept user-defined variable equivalents for the *datepart* arguments.
5851

5952
| *datepart* | Abbreviations |
@@ -77,7 +70,7 @@ This table lists all valid *datepart* arguments. `DATEADD` doesn't accept user-d
7770
An expression that can resolve to an [int](../data-types/int-bigint-smallint-and-tinyint-transact-sql.md) that `DATEADD` adds to a *datepart* of *date*. `DATEADD` accepts user-defined variable values for *number*. `DATEADD` truncates a specified *number* value that has a decimal fraction. It doesn't round the *number* value in this situation.
7871

7972
> [!NOTE]
80-
> In [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [fabric](../../includes/fabric-sqldb.md)], *number* can be expressed as a **bigint**. This feature is in preview.
73+
> In [!INCLUDE [sssql25-md](../../includes/sssql25-md.md)], [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] and [!INCLUDE [fabric](../../includes/fabric-sqldb.md)], *number* can be expressed as a **bigint**. This feature is in preview.
8174
8275
#### *date*
8376

@@ -129,11 +122,12 @@ SELECT DATEADD(year, -2147483649, '20240731');
129122
These statements both return the following error message:
130123

131124
```output
132-
Msg 8115, Level 16, State 2, Line 1. Arithmetic overflow error converting expression to data type int.
125+
Msg 8115, Level 16, State 2, Line 1
126+
Arithmetic overflow error converting expression to data type int.
133127
```
134128

135129
> [!NOTE]
136-
> In [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] and [!INCLUDE [fabric](../../includes/fabric-sqldb.md)], *number* can be expressed as a **bigint**. This feature is in preview.
130+
> In [!INCLUDE [sssql25-md](../../includes/sssql25-md.md)], [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)] and [!INCLUDE [fabric](../../includes/fabric-sqldb.md)], *number* can be expressed as a **bigint**. This feature is in preview.
137131
138132
### *date* argument
139133

@@ -147,7 +141,8 @@ SELECT DATEADD(year, -2147483647, '20240731');
147141
`DATEADD` returns the following error message:
148142

149143
```output
150-
Msg 517, Level 16, State 1, Line 1 Adding a value to a 'datetime' column caused overflow.
144+
Msg 517, Level 16, State 1
145+
Line 1 Adding a value to a 'datetime' column caused overflow.
151146
```
152147

153148
### Return values for a smalldatetime date and a second or fractional seconds datepart

0 commit comments

Comments
 (0)