exec xp_cmdshell 'date 2002-6-30 9:00:00', no_output

解决方案 »

  1.   

    exec xp_cmdshell 'date 2002-6-30 9:00:00', no_output
    执行结果是:“未能找到存储过程 'xp_cmdshell'。”
      

  2.   


    exec master.dbo.xp_cmdshell 'date 2002-6-30 9:00:00', no_output
      

  3.   

    exec master.dbo.xp_cmdshell 'time 9:00:00', no_output
      

  4.   

    而且我不可能每次都要写一遍
    “exec master.dbo.xp_cmdshell 'date 2002-6-19', no_output”啊,明天会自动出现“6-20”吗?
      

  5.   

    是不是只在master里面修改了?
      

  6.   

    还有,就是在数据库里面输入时间的时候要全部输入,即:2002-6-19  6:00:00
    而在delphi里面只需输入:9,就出现:1999-12-30  9:00:00
    这又是什么原因呢?
      

  7.   

    这条语句是修改SQL Server的主机的系统时间,即使关机后也会按这个时钟继续。delphi的问题你问的不清楚。
      

  8.   

    delphi中的degrid,我直接在里面输入时间字段outime
    那个1999-12-30是哪个时间?
    我机子的时间准确,所以我想只能是sql的系统时间问题
      

  9.   

    delphi中有degrid?我只知道有dbgrid和stringgrid。