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

Commit 1c27924

Browse files
authored
Merge pull request #21923 from MicrosoftDocs/WilliamDAssafMSFT-patch-2
Update create-a-sql-server-agent-proxy.md
2 parents e64c9f9 + aa38fa3 commit 1c27924

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

docs/ssms/agent/create-a-sql-server-agent-proxy.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
11
---
2-
description: "Create a SQL Server Agent Proxy"
2+
description: "Create a SQL Server Agent Proxy in SQL Server Management Studio"
33
title: "Create a SQL Server Agent Proxy"
44
ms.custom: seo-lt-2019
5-
ms.date: "05/04/2017"
5+
ms.date: "05/03/2022"
66
ms.prod: sql
77
ms.prod_service: sql-tools
88
ms.technology: ssms
99
ms.topic: conceptual
1010
helpviewer_keywords:
1111
- "proxies [SQL Server Agent], creating"
12-
ms.assetid: 142e0c55-a8b9-4669-be49-b9dc602d5988
1312
author: markingmyname
1413
ms.author: maghan
1514
ms.reviewer: ""
16-
monikerRange: "= azuresqldb-mi-current || >= sql-server-2016"
15+
monikerRange: ">= sql-server-2016"
1716
---
18-
# Create a SQL Server Agent Proxy
19-
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
20-
21-
> [!IMPORTANT]
22-
> 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.
17+
# Create a SQL Server Agent proxy
18+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
2319

2420
This topic describes how to create a SQL Server Agent proxy in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] by using SQL Server Management Studio or [!INCLUDE[tsql](../../includes/tsql-md.md)].
2521

2622
A [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxy account defines a security context in which a job step can run. Each proxy corresponds to a security credential. To set permissions for a particular job step, create a proxy that has the required permissions for a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent subsystem, and then assign that proxy to the job step.
23+
24+
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) or [SQL Agent job limitations in SQL Managed Instance](/azure/azure-sql/managed-instance/job-automation-managed-instance#sql-agent-job-limitations-in-sql-managed-instance) for details.
25+
2726
## <a name="BeforeYouBegin"></a>Before You Begin
2827

2928
### <a name="Restrictions"></a>Limitations and Restrictions
3029

3130
- You must create a credential before you create a proxy if one is not already available.
3231

33-
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxies use credentials to store information about Windows user accounts. The user specified in the credential must have "Access this computer from the network" permission (SeNetworkLogonRight) on the computer on which [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is running.
32+
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxies use credentials to store information about Windows user accounts. The user specified in the credential must have "Access this computer from the network" permission (`SeNetworkLogonRight`) on the computer on which [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is running.
3433

35-
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent checks subsystem access for a proxy and gives access to the proxy each time the job step runs. If the proxy no longer has access to the subsystem, the job step fails. Otherwise, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent impersonates the user that is specified in the proxy and runs the job step.
34+
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent checks subsystem access for a proxy and gives access to the proxy each time the job step runs. If the proxy no longer has access to the subsystem, the job step fails. Otherwise, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent impersonates the user that is specified in the proxy and runs the job step. For a list of proxy subsystems, see [sp_grant_proxy_to_subsystem](/sql/relational-databases/system-stored-procedures/sp-grant-proxy-to-subsystem-transact-sql).
3635

3736
- Creation of a proxy does not change the permissions for the user that is specified in the credential for the proxy. For example, you can create a proxy for a user that does not have permission to connect to an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. In this case, job steps that use that proxy are unable to connect to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
3837

@@ -42,17 +41,17 @@ A [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxy account
4241

4342
#### <a name="Permissions"></a>Permissions
4443

45-
- Only members of the **sysadmin** fixed server role have permission to create, modify, or delete proxy accounts. Users who are not members of the **sysadmin** fixed server role must be added to one of the following [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent fixed database roles in the **msdb** database to use proxies: **SQLAgentUserRole**, **SQLAgentReaderRole**, or **SQLAgentOperatorRole**.
44+
- Only members of the **sysadmin** fixed server role have permission to create, modify, or delete proxy accounts. Users who are not members of the **sysadmin** fixed server role must be added to one of the following [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent fixed database roles in the `msdb` database to use proxies: **SQLAgentUserRole**, **SQLAgentReaderRole**, or **SQLAgentOperatorRole**.
4645

4746
- Requires **ALTER ANY CREDENTIAL** permission if creating a credential in addition to the proxy.
4847

49-
## <a name="SSMSProcedure"></a>Using SQL Server Management Studio
48+
## <a name="SSMSProcedure"></a>Use SQL Server Management Studio (SSMS)
5049

5150
#### To create a SQL Server Agent proxy
5251

53-
1. In **Object Explorer**, click the plus sign to expand the server where you want to create a proxy on SQL Server Agent.
52+
1. In **Object Explorer**, select the plus sign to expand the server where you want to create a proxy on SQL Server Agent.
5453

55-
2. Click the plus sign to expand **SQL Server Agent**.
54+
2. Select the plus sign to expand **SQL Server Agent**.
5655

5756
3. Right-click the **Proxies** folder and select **New Proxy**.
5857

@@ -66,17 +65,17 @@ A [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxy account
6665

6766
8. On the **Principals** page, add or remove logins or roles to grant or remove access to the proxy account.
6867

69-
9. When finished, click **OK**.
68+
9. When finished, select **OK**.
7069

71-
## <a name="TsqlProcedure"></a>Using Transact-SQL
70+
## <a name="TsqlProcedure"></a>Use Transact-SQL
7271

7372
#### To create a SQL Server Agent proxy
7473

7574
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde_md.md)].
7675

77-
2. On the Standard bar, click **New Query**.
76+
2. On the Standard bar, select **New Query**.
7877

79-
3. Copy and paste the following example into the query window and click **Execute**.
78+
3. The following script creates a credential called `CatalogApplicationCredential`, creates proxy `Catalog application proxy` and assigns the credential `CatalogApplicationCredential` to it, and grants the proxy access to the ActiveX Scripting subsystem. Copy and paste the following example into the query window and select **Execute**.
8079

8180
```
8281
-- creates credential CatalogApplicationCredential
@@ -101,10 +100,10 @@ A [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent proxy account
101100
GO
102101
```
103102
104-
For more information, see:
103+
## Next steps
105104
106105
- [CREATE CREDENTIAL (Transact-SQL)](../../t-sql/statements/create-credential-transact-sql.md)
107-
106+
108107
- [sp_add_proxy (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-add-proxy-transact-sql.md)
109-
108+
110109
- [sp_grant_proxy_to_subsystem (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-grant-proxy-to-subsystem-transact-sql.md)

0 commit comments

Comments
 (0)