dbTalk Databases Forums  

Read Backup File Directly?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Read Backup File Directly? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil
 
Posts: n/a

Default Read Backup File Directly? - 06-20-2007 , 01:24 PM






Is there a way to read a backup file to see if it contains a file without
restoring the backup file? We are missing a record from a table, and I need
to find out when it was deleted. We have nightly backup files of the
database. Is it possible, knowing the database name, the table name, and the
primary key value of the record, to determine if the record exists in a
certain backup file? If not, is there an alternate way to determine when a
particular record was deleted?

Thank you!

Neil



Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Read Backup File Directly? - 06-20-2007 , 04:21 PM






Neil (nospam (AT) nospam (DOT) net) writes:
Quote:
Is there a way to read a backup file to see if it contains a file
without restoring the backup file?
You can use RESTORE FILELISTONLY to list the backups within a backup file.

Quote:
We are missing a record from a table, and I need to find out when it was
deleted. We have nightly backup files of the database. Is it possible,
knowing the database name, the table name, and the primary key value of
the record, to determine if the record exists in a certain backup file?
You need to restore the backup. But you could restore it under a different
name.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #3  
Old   
Neil
 
Posts: n/a

Default Re: Read Backup File Directly? - 06-20-2007 , 04:58 PM



Right. I was just that, if I wanted to find out *when* it was deleted, I'd
have to restore the backups one at a time, and look at the database after
each restore to see if it were there.

Thanks,

Neil

"Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote

Quote:
Neil (nospam (AT) nospam (DOT) net) writes:
Is there a way to read a backup file to see if it contains a file
without restoring the backup file?

You can use RESTORE FILELISTONLY to list the backups within a backup file.

We are missing a record from a table, and I need to find out when it was
deleted. We have nightly backup files of the database. Is it possible,
knowing the database name, the table name, and the primary key value of
the record, to determine if the record exists in a certain backup file?

You need to restore the backup. But you could restore it under a different
name.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.