Enabling "Agent XPs" on SQL 2005
Chances are that if you have just done a fresh install of SQL 2005 you will get an error when you try to create your first SQL 2005 maintenance plan. This error tells you that the “‘Agent XPs component is turned off as part of the security configuration for this server” and refers you to your system administrator or the SQL Books Online.
In order to enable the “Agent XPs” component. Start up SQL Management Studio and click the “New Query” button on the tool bar. Execute the following script in the query window (on the right hand side of the screen) .
sp_configure 'show advanced options', 1;GORECONFIGURE;GOsp_configure 'Agent XPs', 1;GORECONFIGUREGO
If you found this page useful, consider linking to it.
Simply copy and paste the code below into your web site (Ctrl+C to copy)
It will look like this: Enabling "Agent XPs" on SQL 2005
Enjoy this post? Please consider leaving a comment or subscribe to the feed and get future articles delivered to your feed reader.
Comments
Didn’t work…. got this error:
Configuration option ’show advanced options’ changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 5845, Level 16, State 1, Line 1
Address Windowing Extensions (AWE) requires the ‘lock pages in memory’ privilege which is not currently present in the access token of the process.
Configuration option ‘Agent XPs’ changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 5845, Level 16, State 1, Line 1
Address Windowing Extensions (AWE) requires the ‘lock pages in memory’ privilege which is not currently present in the access token of the process.
Thanks ! But if you have AWE enabled you get the error:
Address Windowing Extensions (AWE) requires the ‘lock pages in memory’ privilege which is not currently present in the access token of the process.
A quick google gave me this solution:
http://www.tipandtrick.net/200.....g-to-disk/
Regards!
Jeroen
In our case, we had recently turn on AWE to manage the memory of the instance. I have no idea why but we then received the error regarding the Agent XPs being disabled when opening a maintenanace plan. Unchecking the setting resolved our issue.
Maybe you are going to have some problems when execute the script, in some cases you will have an error like this:
Msg 5808, Level 16, State 1, Line 1
Ad hoc update to system catalogs is not supported.
This is caused when you try to execute RECONFIGURE
So, You will need to change to this
sp_configure ’show advanced options’, 1;
GO
RECONFIGURE WITH OVERRIDE;
GO
sp_configure ‘Agent XPs’, 1;
GO
RECONFIGURE WITH OVERRIDE;
GO
I hope this work for you





It works perfectly!
Thx
Gianluca