Microsoft SQL Server Enable cmd permission


Example

EXEC sp_configure 'xp_cmdshell', 1
GO
RECONFIGURE