List Job Category Information
This topic describes how to list job category information in SQL Server 2012 by using Transact-SQL or SQL Server Management Objects.
Before you begin:
Security
To list job category information, using:
Transact-SQL
SQL Server Management Objects
Before You Begin
Security
For detailed information, see Implement SQL Server Agent Security.
[Top]
Using Transact-SQL
To list job category information
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
-- returns information about jobs that are administered locally USE msdb ; GO EXEC dbo.sp_help_category @type = N'LOCAL' ; GO
For more information, see sp_help_category (Transact-SQL).
[Top]
Using SQL Server Management Objects
To list job category information
Use the JobCategory class by using a programming language that you choose, such as Visual Basic, Visual C#, or PowerShell.. For more information, see SQL Server Management Objects (SMO).
[Top]