SAP Knowledge Base Article - Preview

2426953 - SM21: Database Error 50000: SQL Server blocked access to procedure 'sys.xp_cmdshell'


In the System Log (SM21 transaction) you can see the following entries:

Database Error 50000 at OPC

SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned off as part of the security configuration of this server. A system administrator can enable the use of 'xp_cmdshell' by using sp_configure. For more information about enabling 'xp_cmdshell' see "Surface Area Configuration" in SQL Server Books Online



  • SAP systems based on SAP NetWeaver;
  • Microsoft SQL Server 2008 and higher;


SAP NetWeaver all versions


xp_cmdshell, database error, mssql, msql, sm21, system log, error 50000, errro, err, sys.xp_cmdshell, procedure, proc, function, block, ms sql , KBA , BC-DB-MSS , SQL Server in SAP NetWeaver Products , BW-SYS-DB-MSS , BW on Microsoft SQL Server , BC-DB-MSS-CCM , CCMS/Database Monitors for SQL Server , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.