SQLServer上からWindowsのコマンド実行ができるコマンド
デフォルトは無効になっているので、有効化する方法です。

なお、on Linux版は、対応してません。
(Windowsのコマンド[cmd.exe]ですからね。。。)

EXEC sp_configure ‘show advanced options’, 1;
RECONFIGURE;
EXEC sp_configure ‘xp_cmdshell’, 1;
RECONFIGURE;