Enable Agent XP in SQL Server

By default Agent XP is disabled in the Sql Server. It is required to create different jobs on the Sql Server. Any attempt to access it might result in the following error:

Agent XP can be enabled by the following 2 ways:

1) SQL Server Configuration

To enable it rt click the SQL Server and follow these steps

2)SQL Query


****************************************************************
--Query:
****************************************************************
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Agent XPs', 1;
GO
RECONFIGURE
GO
****************************************************************
--http://technet.microsoft.com/en-us/library/ms178127.aspx
****************************************************************



Now you can see in the following image, that Agent xp has been enabled.