Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit dbda53b

Browse files
committed
changes made
1 parent 37c1621 commit dbda53b

3 files changed

Lines changed: 502 additions & 516 deletions

File tree

docs/ssms/agent/delete-an-alert.md

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
2-
description: "Delete an Alert"
32
title: "Delete an Alert"
4-
ms.custom: seo-lt-2019
5-
ms.date: 01/19/2017
3+
description: "Delete an Alert"
64
ms.prod: sql
75
ms.prod_service: sql-tools
86
ms.technology: ssms
@@ -15,62 +13,67 @@ helpviewer_keywords:
1513
- "dropping alerts"
1614
- "disabling alerts"
1715
- "removing alerts"
18-
ms.assetid: c982b208-e2d1-4d34-8cee-940b9baf6586
1916
author: markingmyname
2017
ms.author: maghan
2118
ms.reviewer: ""
19+
ms.custom: seo-lt-2019
20+
ms.date: 02/04/2021
2221
monikerRange: "= azuresqldb-mi-current || >= sql-server-2016"
2322
---
23+
2424
# Delete an Alert
25+
2526
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
2627

27-
> [!IMPORTANT]
28+
> [!IMPORTANT]
2829
> On [Azure SQL Managed Instance](/azure/sql-database/sql-database-managed-instance), most, but not all SQL Server Agent features are currently supported. See [Azure SQL Managed Instance T-SQL differences from SQL Server](/azure/sql-database/sql-database-managed-instance-transact-sql-information#sql-server-agent) for details.
2930
30-
This topic describes how to delete [!INCLUDE[msCoName](../../includes/msconame_md.md)] [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent alerts in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)].
31-
32-
## <a name="BeforeYouBegin"></a>Before You Begin
33-
34-
### <a name="Restrictions"></a>Limitations and Restrictions
35-
Removing an alert also removes any notifications associated with the alert.
36-
37-
### <a name="Security"></a>Security
38-
39-
#### <a name="Permissions"></a>Permissions
31+
This article describes how to delete Microsoft SQL Server Agent alerts using SQL Server Management Studio or Transact-SQL.
32+
33+
## <a name="BeforeYouBegin"></a>Before You Begin
34+
35+
### <a name="Restrictions"></a>Limitations and Restrictions
36+
37+
Removing an alert also removes any notifications associated with the alert.
38+
39+
### <a name="Security"></a>Security
40+
41+
#### <a name="Permissions"></a>Permissions
42+
4043
By default, only members of the **sysadmin** fixed server role can delete alerts.
41-
42-
## <a name="SSMSProcedure"></a>Using SQL Server Management Studio
43-
44-
#### To delete an alert
45-
46-
1. In **Object Explorer,** click the plus sign to expand the server that contains the SQL Server Agent alert that you want to delete.
47-
48-
2. Click the plus sign to expand **SQL Server Agent**.
49-
50-
3. Click the plus sign to expand the **Alerts** folder.
51-
52-
4. Right-click the alert you want to delete and select **Delete**.
53-
54-
5. In the **Delete Object** dialog box, confirm that the correct alert is selected and click **OK**.
55-
56-
## <a name="TsqlProcedure"></a>Using Transact-SQL
57-
58-
#### To delete an alert
59-
60-
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde_md.md)].
61-
62-
2. On the Standard bar, click **New Query**.
63-
64-
3. Copy and paste the following example into the query window and click **Execute**.
65-
66-
```
67-
-- deletes the SQL Server Agent alert called 'Test Alert.'
68-
USE msdb ;
69-
GO
70-
71-
EXEC dbo.sp_delete_alert
72-
@name = N'Test Alert' ;
73-
GO
74-
```
75-
76-
For more information, see [sp_delete_alert (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-delete-alert-transact-sql.md).
44+
45+
## <a name="SSMSProcedure"></a>Using SQL Server Management Studio
46+
47+
### To delete an alert
48+
49+
1. In **Object Explorer,** select the plus sign to expand the server that contains the SQL Server Agent alert that you want to delete.
50+
51+
2. Select the plus sign to expand **SQL Server Agent**.
52+
53+
3. Select the plus sign to expand the **Alerts** folder.
54+
55+
4. Right-click the alert you want to delete and select **Delete**.
56+
57+
5. In the **Delete Object** dialog box, confirm you chose the correct alert then select **OK**.
58+
59+
## <a name="TsqlProcedure"></a>Using Transact-SQL
60+
61+
### To delete an alert
62+
63+
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde_md.md)].
64+
65+
2. On the Standard bar, select **New Query**.
66+
67+
3. Copy and paste the following example into the query window and select **Execute**.
68+
69+
```
70+
-- deletes the SQL Server Agent alert called 'Test Alert.'
71+
USE msdb ;
72+
GO
73+
74+
EXEC dbo.sp_delete_alert
75+
@name = N'Test Alert' ;
76+
GO
77+
```
78+
79+
For more information, see [sp_delete_alert (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-delete-alert-transact-sql.md).

docs/ssms/agent/job-step-properties-new-job-step-advanced-page.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
description: "Job Step Properties - New Job Step (Advanced Page)"
32
title: New Job Step Properties (Advanced Page)
3+
description: "Job Step Properties - New Job Step (Advanced Page)"
44
ms.prod: sql
55
ms.prod_service: sql-tools
66
ms.technology: ssms
77
ms.topic: conceptual
88
f1_keywords:
99
- "sql13.ag.job.stepadvanced.f1"
10-
ms.assetid: bdecfd4f-bcd8-4ba2-8ada-fbb636314f40
1110
author: markingmyname
1211
ms.author: maghan
1312
ms.reviewer: ""
@@ -23,20 +22,20 @@ monikerRange: "= azuresqldb-mi-current || >= sql-server-2016"
2322
> [!IMPORTANT]
2423
> On [Azure SQL Managed Instance](/azure/sql-database/sql-database-managed-instance), most, but not all SQL Server Agent features are currently supported. See [Azure SQL Managed Instance T-SQL differences from SQL Server](/azure/sql-database/sql-database-managed-instance-transact-sql-information#sql-server-agent) for details.
2524
26-
Use this page to view and change the properties of a [!INCLUDE[msCoName](../../includes/msconame_md.md)] [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent job step.
25+
Use this page to view and change the properties of a [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] Agent job step.
2726

2827
## Options
2928
**On success action**
30-
Sets the action for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent to perform if the job step succeeds.
29+
Sets the action for [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] Agent to perform if the job step succeeds.
3130

3231
**Retry attempts**
33-
Sets the number of times that [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent attempts to retry a failed job step.
32+
Sets the number of times that [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] Agent attempts to retry a failed job step.
3433

3534
**Retry interval (minutes)**
36-
Sets the amount of time for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent to wait between retry attempts.
35+
Sets the amount of time for [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] Agent to wait between retry attempts.
3736

3837
**On failure action**
39-
Sets the action for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent to perform if the job step fails.
38+
Sets the action for [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] Agent to perform if the job step fails.
4039

4140
## Options for Transact-SQL Job Steps
4241
**Output file**
@@ -46,16 +45,16 @@ Sets the file to use for output from the job step. This option is available only
4645
Browse to the file to use for output from the job step.
4746

4847
**View**
49-
In [!INCLUDE[msCoName](../../includes/msconame_md.md)] [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view job step output files.
48+
In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view Job Step output files.
5049

5150
**Append output to existing file**
5251
Append output to the existing contents of the file. Otherwise, the previous file contents are overwritten each time the job step runs.
5352

5453
**Log to table**
55-
Logs job step output to the **sysjobstepslogs** table in the **msdb** database.
54+
Logs Job Step output to the **sysjobstepslogs** table in the **msdb** database.
5655

5756
**View**
58-
After the job step has run at least once, click **View** to view its output in the table.
57+
After the job step has run at least once, select **View** to view its output in the table.
5958

6059
**Append output to existing entry in table**
6160
Appends output to the existing contents of the table. Otherwise, the previous table contents are overwritten each time the job step runs.
@@ -64,7 +63,7 @@ Appends output to the existing contents of the table. Otherwise, the previous ta
6463
Select this option to include output from the job step in the job history.
6564

6665
**Run as user**
67-
If you are a member of the **sysadmin** fixed server role, you can select another SQL login to run this job step.
66+
If you're a member of the **sysadmin** fixed server role, you can select another SQL login to run this job step.
6867

6968
## Options for Operating System (CmdExec) Job Steps
7069
**Output file**
@@ -74,16 +73,16 @@ Sets the file to use for output from the job step.
7473
Browse to the file to use for output from the job step.
7574

7675
**View**
77-
In [!INCLUDE[msCoName](../../includes/msconame_md.md)] [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view job step output files.
76+
In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view Job Step output files.
7877

7978
**Append output to existing file**
80-
Appends the job step output to the previous file contents each time it runs.
79+
Appends the Job Step output to the previous file contents each time it runs.
8180

8281
**Log to table**
83-
Logs job step output to the **sysjobstepslogs** table in the **msdb** database.
82+
Logs Job Step output to the **sysjobstepslogs** table in the **msdb** database.
8483

8584
**View**
86-
After the job step has run at least once, click **View** to view its output in the table.
85+
After the job step has run at least once, select **View** to view its output in the table.
8786

8887
**Append output to existing entry in table**
8988
Appends output to the existing contents of the table. Otherwise, the previous table contents are overwritten each time the job step runs.
@@ -99,16 +98,16 @@ Sets the file to use for output from the job step.
9998
Browse to the file to use for output from the job step.
10099

101100
**View**
102-
In [!INCLUDE[msCoName](../../includes/msconame_md.md)] [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view job step output files.
101+
In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view Job Step output files.
103102

104103
**Append output to existing file**
105-
Appends the job step output to the previous file contents each time it runs.
104+
Appends the Job Step output to the previous file contents each time it runs.
106105

107106
**Log to table**
108-
Logs job step output to the **sysjobstepslogs** table in the **msdb** database.
107+
Logs Job Step output to the **sysjobstepslogs** table in the **msdb** database.
109108

110109
**View**
111-
After the job step has run at least once, click **View** to view its output in the table.
110+
After the job step has run at least once, select **View** to view its output in the table.
112111

113112
**Append output to existing entry in table**
114113
Appends output to the existing contents of the table. Otherwise, the previous table contents are overwritten each time the job step runs.
@@ -131,22 +130,23 @@ Sets the file to use for output from the job step. This option is available only
131130
Browse to the file to use for output from the job step.
132131

133132
**View**
134-
In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view job step output files.
133+
In [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)], this button is disabled for viewing output files. Instead, use Notepad to view Job Step output files.
135134

136135
**Append output to existing file**
137136
Append output to the existing contents of the file. Otherwise, the previous file contents are overwritten each time the job step runs.
138137

139138
**Log to table**
140-
Logs job step output to the **sysjobstepslogs** table in the **msdb** database.
139+
Logs Job Step output to the **sysjobstepslogs** table in the **msdb** database.
141140

142141
**View**
143-
After the job step has run at least once, click **View** to view its output in the table.
142+
After the job step has run at least once, select **View** to view its output in the table.
144143

145144
**Append output to existing entry in table**
146145
Appends output to the existing contents of the table. Otherwise, the previous table contents are overwritten each time the job step runs.
147146

148147
**Include step output in history**
149148
Select this option to include output from the job step in the job history.
150149

151-
## See Also
152-
[Manage Job Steps](../../ssms/agent/manage-job-steps.md)
150+
## See Also
151+
152+
- [Manage Job Steps](../../ssms/agent/manage-Job Steps.md)

0 commit comments

Comments
 (0)