⌘BABAKOV.NET Let's code!
100% [light] [ru]

Enabling xp_cmdshell usage in MSSQL

To enable usage of xp_cmdshell in MSSQL, you need to:

-- Разрешаем изменение дополнительных параметров.
EXEC sp_configure \'show advanced options\', 1
GO

-- Обновkztv текущее настроенное значение для дополнительных параметров
RECONFIGURE
GO

-- Включаем cmdshell.
EXEC sp_configure \'xp_cmdshell\', 1
GO

-- Обновляем текущее настроенное значение для cmdshell
RECONFIGURE
GO

Comments (0)

No comments yet.

Leave a comment
Comment
Images (up to 5 MB)
Your comment will appear after moderation.