这是在网上搜的修改2005的系统时间
--修改前时间
SELECT getdate();
--打开高级系统控制选项
EXEC master.dbo.sp_configure 'show advanced options', 1 RECONFIGURE;
--修改执行权限,这样就可以执行修改时间的命令了
EXEC master.dbo.sp_configure 'xp_cmdshell', 1 RECONFIGURE;
--修改系统时间
exec master..xp_cmdshell 'date 2013-08-8';
exec master..xp_cmdshell 'time 20:04:00';
--修改后时间
SELECT getdate();
执行后不成功 报错
The system cannot accept the date entered.
Enter the new date: (mm-dd-yy)
NULL
A required privilege is not held by the client.
求助,怎么修改数据库时间,web服务器和sqlserver服务器没有在同一台机器上,需要校时。怎么解决