步骤如下:
1、SQL Server 阻止了对组件 'xp_cmdshell' 的 过程'sys.xp_cmdshell' 的访问
EXEC sp_configure 'show advanced options', 1--
;RECONFIGURE WITH OVERRIDE --
;EXEC sp_configure 'xp_cmdshell', 1 --
;RECONFIGURE WITH OVERRIDE --
;EXEC sp_configure 'show advanced options', 0 --
2、修改服务器时间
exec master..xp_cmdshell 'date 2009-04-06'
3、修改查看
select getdate()