Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sp_update_category (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_update_category (Transact-SQL)

Changes the name of a category.

     [@class =] 'class' , 
     [@name =] 'old_name' ,
     [@new_name =] 'new_name'

[ @class =] 'class'

The class of the category to update. class is varchar(8), with no default, and can be one of these values.

Value Description


Updates an alert category.


Updates a job category.


Updates an operator category.

[ @name =] 'old_name'

The current name of the category. old_name is sysname, with no default.

[ @new_name =] 'new_name'

The new name for the category. new_name is sysname, with no default.

0 (success) or 1 (failure)

sp_update_category must be run from the msdb database.

To run this stored procedure, users must be granted the sysadmin fixed server role.

A. Renaming a job category

The following example renames a job category from AdminJobs to Administrative Jobs.

USE msdb ;

EXEC dbo.sp_update_category
  @class = N'JOB',
  @name = N'AdminJobs',
  @new_name = N'Administrative Jobs' ;

Community Additions

© 2015 Microsoft