• SQLServer 查看备份进度


    SELECT   DB_NAME(er.[database_id]) [DatabaseName],  
    er.[command] AS [CommandType],  
    er.[percent_complete],  er.start_time,
    CONVERT(DECIMAL(5, 2), er.[percent_complete]) AS [Complete_Percent]  
    ,CONVERT(DECIMAL(38, 2), er.[total_elapsed_time] / 60000.00) AS [ElapsedTime_m]  
    ,CONVERT(DECIMAL(38, 2), er.[estimated_completion_time] / 60000.00) AS [EstimatedCompletionTime_m]  
    FROM sys.dm_exec_requests AS er  
    WHERE --DB_NAME(er.[database_id]) in ('xxxx') and
    er.[command] in ( 'RESTORE DATABASE' ,'BACKUP DATABASE')
    order by er.start_time desc

  • 相关阅读:
    Math app 2.0
    “口袋精灵”单元测试
    学习进度条
    本学期总结
    sprint2的总结及团队贡献分
    点餐系统Sprint1总结
    实验8
    实验7
    实验6
    实验五
  • 原文地址:https://www.cnblogs.com/accumulater/p/7081509.html
Copyright © 2020-2023  润新知