KB Issue
SQL Server Management Studio Job may not work if the xp cmdshell is not enabled.
Issue Details
By default, [xp cmdshell] is disabled, which will cause the following error to occur during a [SQL Server Agent][Job].
SQLSTATE 42000 Error 15281
Date6/18/2021 9:30:00 PM
LogJob History (Transaction Backup)
Step ID1
ServerSQL-06\SQL2019
Job NameTransaction Backup
Step NameTrans Backup
Duration00:00:00
Sql Severity16
Sql Message ID3013
OperatorEmailed
OperatorNet sent
OperatorPaged
Retries Attempted0
Message
Executed as user: Your-Domain\sqlagent. ...ponent 'xp cmdshell' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'xp cmdshell' by using sp configure. For more information about enabling 'xp cmdshell', search for 'xp cmdshell' in SQL Server Books Online. [SQLSTATE 42000] (Error 15281)


Recreate Issue
If the [XPCmdShellEnabled] is set to [False], this error will happen.
Resolve Issue
To enable the [xp cmdshell].
Rerun your job, and this time it should complete without issue.