Mostrando entradas con la etiqueta XP_CMDSHELL. Mostrar todas las entradas
Mostrando entradas con la etiqueta XP_CMDSHELL. Mostrar todas las entradas

20 octubre, 2009

Cómo habilitar xp_cmdshell en SQL Server 2008

Antes de SQL Server 2008 podíamos habilitar al xp_cmdshell usando la herramienta Surface Area Configuration (SAC), pero dicha herramienta fué sustituida en SQL Server 2008 por SQL Server Configuration Manager. El siguiente scriptlet puede hacer la tarea:



USE master
GO
EXECUTE sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
EXECUTE sp_configure 'xp_cmdshell', '1'
RECONFIGURE WITH OVERRIDE
GO
EXECUTE sp_configure 'show advanced options', 0
RECONFIGURE WITH OVERRIDE
GO