Aracılığıyla paylaş


xp_cmdshell seçeneği

' De kullanılmaya başlandı. SQL Server 2005, xp_cmdshell seçenek olup olmadığını denetlemek için sistem yöneticileri sağlayan bir sunucu yapılandırma seçeneğidir xp_cmdshell genişletilmiş saklı yordam bir sistem üzerinde çalıştırılabilir.Varsayılan olarak, xp_cmdshell seçeneği yeni yüklemeler devre dışı bırakılır ve ilke tabanlı yönetim kullanarak veya çalıştırılarak etkinleştirilebilirsp_configure sistem saklı yordamı aşağıdaki kod örneğinde gösterildiği gibi:

-- To allow advanced options to be changed.
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