1

どうすればdir他のようなシステムコマンドを実行できxp_cmdshellますか?

4

1 に答える 1

1

問題はありません。例を次に示します。

dstestはリモート サーバーです ...

ここに画像の説明を入力

編集

これを実行してアクティブ化します:

EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
于 2012-05-20T14:32:57.303 に答える