I am able to enable xp_cmdshell in SQL Server 2005 Express by going to Start / All Programs / Microsoft SQL Server 2005 / Configuration Tools / SQL Server Surface Area Configuration.
However - I need to be able to enable / disable xp_cmdshell using scripts. We build service packs that go over the internet to many customers, and these service packs use bcp to load tables w/updated data.
After several circles on the MS online help merry-go-round I searched the internet. I found the below suggested solution:
exec sp_configure 'xp_cmdshell', '1'
When I run it I get:
"The configuration option 'xp_cmdshell' does not exist, or it may be an advanced option."
I'm thinking there is probably a simple solution to my script dilemma.
However - I need to be able to enable / disable xp_cmdshell using scripts. We build service packs that go over the internet to many customers, and these service packs use bcp to load tables w/updated data.
After several circles on the MS online help merry-go-round I searched the internet. I found the below suggested solution:
exec sp_configure 'xp_cmdshell', '1'
When I run it I get:
"The configuration option 'xp_cmdshell' does not exist, or it may be an advanced option."
I'm thinking there is probably a simple solution to my script dilemma.