---- To allow advanced options to be changed.
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
Alternative way
1. Click the Start button.
2. Select All Programs.
3. Navigate to the Microsoft SQL Server 2008 folder.
4. Right Click on Server name then click facets options
5. In the Facets Option choose Surface Area Configuration in dropdown
6. At the bottom of the window, mark True for xp_cmdshell.
7. Click OK.
i have tried the alternative way and it worked for me.
ReplyDeletethanks
Ajay
it really help.
ReplyDeleteThanks for the Alternative way
ReplyDeleteSRK
I must just sa, I was struggling with this for a while and nothing worked. Your alternative way did the job, thank you very much.
ReplyDeletety so so much
ReplyDeleteFor SQL Server 2008 R2 you can go into SSMS, right click on the server, select Facets. In the new window that comes up change the Facet to Surface Area Configuration and you'll find XPCmdShellEnabled in the Facet properties below.
ReplyDelete