SQL Server-sys purge history job failed issue

Posted rosewong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL Server-sys purge history job failed issue相关的知识,希望对你有一定的参考价值。

Message:

Unable to start execution of step 3 (reason: The PowerShell subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has been suspended).  The step failed.

 

Action:

The error indicates the invalid location of SQLPS.exe file. To troubleshoot the issue, please follow the below steps:
1. Execute the following statements to check the location of SQLPS.exe file.

SELECT * FROM msdb.dbo.syssubsystems WHERE start_entry_point =‘PowerShellStart‘

 

2.update the correct sqlps.exe location path.

Update msdb.dbo.syssubsystems  set agent_exe=‘D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\SQLPS.exe‘

WHERE start_entry_point =‘PowerShellStart‘

 

3.restart sql agent services and then rerun the job.


以上是关于SQL Server-sys purge history job failed issue的主要内容,如果未能解决你的问题,请参考以下文章

SQL随记

pl sql cursor for loop in

relay_log_purge参数一则

relay_log_purge参数一则

InnoDB Purge是工作原理?

常用核心数据库查询sql