Quantcast
Channel: Red Gate forums: SQL Backup 7
Viewing all articles
Browse latest Browse all 713

RE: How to generate report on database restore durations

$
0
0
If you don't mind writing your own reports, you can access the restore details using SQL commands from within Management Studio.

The SQL Backup restore history details are stored in a SQL Server Compact Edition database on the server. You could use the sqbdata proxy function to access the details. The tables that store the restore history details are:

- restorehistory
- restorefiles
- restorelog

A simple query to retrieve the restore details could be as follows:

Code:
EXEC master..sqbdata 'SELECT dbname, restore_start, restore_end FROM restorehistory WHERE restore_type = ''L'' ORDER BY dbname, restore_start'

Viewing all articles
Browse latest Browse all 713

Trending Articles