会计考友 发表于 2012-8-4 13:54:49

T-SQL打开一项外围配置

//查看外围配置情况
SELECT * FROM sys.configurations ORDER BY name ;
GO
//show advanced options 选项用来显示 sp_configure 系统存储过程高级选项。当 show advanced //options 设置为 1 时,可以使用 sp_configure 列出高级选项。默认值为 0。
sp_configure 'show advanced options', 1;
GO
//重启服务
reconfigure;
GO
//更改的配置选项的当前已配置值
sp_configure 'xp_cmdshell', 1;
GO
//重启服务
reconfigure;
GO
页: [1]
查看完整版本: T-SQL打开一项外围配置