Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定のデータベースでログ配布が最後に発生したのはいつかを判断するためのSQLクエリが必要です。これは正しいでしょうか?
SELECT Max(restore_date) FROM msdb.dbo.restorehistory WHERE destination_database_name = 'XXXXXXXXXX' AND restore_type = 'L'
はい
しかし
前回手動でログを復元しなかった場合のみ。
と
このタスク専用のモニターインスタンスの手順を使用することをお勧めします