zoukankan      html  css  js  c++  java
  • SQL Server 查看备份记录

     SELECT 
        CONVERT(CHAR(100), SERVERPROPERTY('Servername')) AS Server, 
        msdb.dbo.backupset.database_name, 
        msdb.dbo.backupset.backup_start_date, 
        msdb.dbo.backupset.backup_finish_date, 
        msdb.dbo.backupset.expiration_date, 
        CASE msdb..backupset.type 
        WHEN 'D' THEN 'FULL Backup' 
        WHEN 'I' THEN 'DIFF Backup'
        WHEN 'L' THEN 'Log Backup' 
    END AS backup_type, 
    msdb.dbo.backupset.backup_size, 
    msdb.dbo.backupmediafamily.logical_device_name, 
    msdb.dbo.backupmediafamily.physical_device_name, 
    msdb.dbo.backupset.name AS backupset_name, 
    family_sequence_number '介质簇位置',
    msdb.dbo.backupset.description 
    FROM msdb.dbo.backupmediafamily 
    INNER JOIN msdb.dbo.backupset ON msdb.dbo.backupmediafamily.media_set_id = msdb.dbo.backupset.media_set_id 
    WHERE (CONVERT(datetime, msdb.dbo.backupset.backup_start_date, 102) >= GETDATE() - 7) 
    ORDER BY msdb.dbo.backupset.database_name, msdb.dbo.backupset.backup_finish_date 
  • 相关阅读:
    HMM (隐马尔可夫) 推导 (上)
    图模型初识
    K-means 和 EM 比较
    EM-高斯混合模型
    EM算法-完整推导
    EM算法直观认识
    pandas 之 时间序列索引
    K-Means 算法
    接口。
    第一册:lesson ninety-nine。
  • 原文地址:https://www.cnblogs.com/VicLiu/p/15625223.html
Copyright © 2011-2022 走看看