Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 2.6 KB

File metadata and controls

69 lines (51 loc) · 2.6 KB
title sp_enum_sqlagent_subsystems (Transact-SQL)
description Lists the SQL Server Agent subsystems.
author markingmyname
ms.author maghan
ms.reviewer randolphwest
ms.date 06/23/2025
ms.service sql
ms.subservice system-objects
ms.topic reference
f1_keywords
sp_enum_sqlagent_subsystems
sp_enum_sqlagent_subsystems_TSQL
helpviewer_keywords
sp_enum_sqlagent_subsystems
dev_langs
TSQL

sp_enum_sqlagent_subsystems (Transact-SQL)

[!INCLUDE SQL Server]

Lists the [!INCLUDE ssNoVersion] Agent subsystems.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_enum_sqlagent_subsystems
[ ; ]

Arguments

None.

Return code values

0 (success) or 1 (failure).

Result set

Column name Data type Description
subsystem nvarchar(40) Name of the subsystem.
description nvarchar(512) Description of the subsystem.
subsystem_dll nvarchar(510) DLL module that contains the subsystem.
agent_exe nvarchar(510) Executable module that is used by the subsystem.
start_entry_point nvarchar(30) Procedure that [!INCLUDE ssnoversion-md] Agent calls during job step execution.
event_entry_point nvarchar(30) Procedure that [!INCLUDE ssnoversion-md] Agent calls during job step execution.
stop_entry_point nvarchar(30) Procedure that [!INCLUDE ssnoversion-md] Agent calls during job step execution.
max_worker_threads int Maximum number of threads [!INCLUDE ssnoversion-md] Agent starts for this subsystem.
subsystem_id int Identifier for the subsystem.

Remarks

This procedure lists the subsystems available in the instance.

Permissions

By default, members of the sysadmin fixed server role can execute this stored procedure. Other users must be granted the SQLAgentOperatorRole fixed database role in the msdb database.

For details about SQLAgentOperatorRole, see SQL Server Agent Fixed Database Roles.

Related content