DUMP  TRANSACTION  库名  WITH  NO_LOG DBCC SHRINKFILE( '日志文件名',新的大小数值型如1)这样有问题吗?

解决方案 »

  1.   

    This command did not return data, and it did not return any rows
    其实说明你的命令执行成功,
    只是没有任何结果集返回而已。SQL Server6.5 不能识别Backup Log命令,所以会出错。你的SQL Executive执行上一个任务‘DEL_Log’时间比较长,
    而且本次任务同时对Log操作,所以会出错
      

  2.   

    为了定时运行,task里的设置如下:
    name: del_log 
    type: TSQL
    Database: test
    command:(执行的内容如下)DUMP  TRANSACTION  test  WITH  NO_LOG运行时提示错误:
    This SQLEcecutive service is not currently running on 
    server '128.100.100.1'. This prevents task 'del_log' from being run.
    如何改?
      

  3.   

    6.5:"DUMP  TRANSACTION  test  WITH  NO_LOG"出错信息:
    This command did not return data, and it did not return any rows这是正常的,表示执行完毕。(E文好像是这个意思)
    "backup log test with no_log"出错信息:
    Msg 170, Level 15, State 1
    Line 1: Incorrect syntax near 'test'.6.5没有backup log命令,用上面的DUMP  TRANSACTION命令就可以了。
      

  4.   

    为了定时运行,task里的设置如下:
    name: del_log 
    type: TSQL
    Database: test
    ^^^^^^^^改成master试试command:(执行的内容如下)DUMP  TRANSACTION  test  WITH  NO_LOG运行时提示错误:
    This SQLEcecutive service is not currently running on 
    server '128.100.100.1'. This prevents task 'del_log' from being run.
    如何改?
      

  5.   

    因为每天有个程序都要把新的数据进库,但是过一段时间后(大约1-2周),数据就不能进库,必须手工执行truncate,程序才能把新记录写入表中,如何让数据库自动执行truncate?
      

  6.   

    to  FutureSa(异想天开(Haiwer)) 
    都改过了,也是
    This SQLEcecutive service is not currently running on 
    server '128.100.100.1'. This prevents task 'del_log' from being run.
    错误提示
      

  7.   

    SQL Ececutive 没有启动,在企业管理器找SQL Ececutive,按start
    也可以在服务器选项里设置Auto Start Ececutive on Boot Time
      

  8.   

    to CSDNM(决定不当CSDN经理了): 
    没有Auto Start Ececutive on Boot Time 倒有
    Auto Start Executive at Boot Time
    项已经是选上。
      

  9.   

    先要找到SQL Ececutive,启动一下看出什么问题,要不没法解决
      

  10.   

    to CSDNM
    SQL Executive 里的start 和 stop项都是灰色,没法启动和停止。
      

  11.   

    1、DUMP  TRANSACTION  test  WITH  NO_LOG并没有出错,提示命令已经完成,没有返回值
    2、backup log test with no_log sqlserver6.5不支持
    3、清除日志建议使用  dbcc checktable(syslogs)
    4、SQL Executive服务没有启动,如果改变过服务器密码再服务中改变密码
      

  12.   

    谢谢, zhouzdsoft(海潮) !试试先。
      

  13.   

    最终使用
    DUMP  TRANSACTION  test  WITH  NO_LOG
    成功,当初是使用客户端加上的运行任务才有:
    This SQLEcecutive service is not currently running on 
    server '128.100.100.1'. This prevents task 'del_log' from being run.
    运行时提示错误,今天在服务器上运行就没有这个错误了。
    谢谢各位帮助。