Compresses, encrypts, secures and monitors SQL Server backups.
Moderators: Chris Auckland, eddie davis, Colin Millerchip, Brian Harris, james.billings, RBA, petey
For example, if I have some sqb files located in c:\\temp, what's the easiest way to get the meta information(such as first lsn last lsn etc) in a easy to use form from them? The following code is currently what I have, but I have difficult in getting the individual item value. Hope you can give me some suggestions. Thanks.
- Code: Select all
CREATE TABLE sqb
id INT IDENTITY
INSERT INTO sqb
EXECUTE master..sqlbackup '-sql "RESTORE SQBHEADERONLY
FROM DISK = [c:\\temp\\*.sqb] WITH SINGLERESULTSET"'
SELECT * FROM sqb;
- Posts: 29
- Joined: Mon Apr 12, 2010 8:21 pm
Thank you for your post.
You could use the command RESTORE HEADERONLY which will display table of data retrieved (e.g. FirstLSN and LastLSN). But please be aware that this can take some time to run as it needs to parse the whole file to retrieve the info.
Technical Support Engineer
- Posts: 330
- Joined: Mon Apr 19, 2010 1:44 pm
- Location: Cambridge, UK
Presently, SQL Backup cannot display the results of reading the backup file headers in table form.
SQL Backup Consultant Developer
Associate, Yohz Software
- SQL Backup goodies under the hood, updated for version 7
- Posts: 2233
- Joined: Sun Apr 24, 2005 12:34 pm
Return to SQL Backup 6
Who is online
Users browsing this forum: No registered users and 1 guest