--- title: "Execute SQL Server Agent Job Task (Maintenance Plan) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: supportability ms.topic: conceptual f1_keywords: - "sql13.swb.maint.executejob.f1" helpviewer_keywords: - "Execute SQL Server Agent Job Task dialog box" ms.assetid: 4ed75956-ebb8-4d8c-9c16-fc0eb00bd3a0 author: MikeRayMSFT ms.author: mikeray --- # Execute SQL Server Agent Job Task (Maintenance Plan) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] Use the **Execute SQL Server Agent Job Task** dialog to execute Microsoft SQL Server Agent jobs within a maintenance plan. This option will not be available if you have no SQL Server Agent jobs on the selected connection. This task uses the **.sp_start_job** statement. ## UIElement List **Connection** Select the server connection to use when performing this task. **New** Create a new server connection to use when performing this task. The **New Connection** dialog box is described below. **Available SQL Agent jobs** Select the job to execute. The grid provides the **Job name** and **Description** to identify the jobs. **View T-SQL** View the [!INCLUDE[tsql](../../includes/tsql-md.md)] statements performed against the server for this task, based on the selected options. > [!NOTE] > When the number of objects affected is large, this display can take a considerable amount of time. ## New Connection Dialog Box **Connection name** Enter a name for the new connection. **Select or enter a server name** Select a server to connect to when performing this task. **Refresh** Refresh the list of available servers. **Enter information to log on to the server** Specify how to authenticate against the server. **Use Windows integrated security** Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] [!INCLUDE[ssDE](../../includes/ssde-md.md)] with Microsoft Windows Authentication. **Use a specific user name and password** Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] [!INCLUDE[ssDE](../../includes/ssde-md.md)] using [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Authentication. This option is not available. **User name** Provide a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] login to use when authenticating. This option is not available. **Password** Provide a password to use when authenticating. This option is not available. ## See Also [sp_add_job (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-add-job-transact-sql.md) [Create a Job](../../ssms/agent/create-a-job.md) [sp_start_job (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-start-job-transact-sql.md)