Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BACKUP DATABASE 1

Status
Not open for further replies.

password99

Technical User
Jul 19, 2002
122
US
When you backup to the same file as your previous backup file, how does SQL Server know what data needs to be restored if you restore the previous backup (altough stored in the same file).

 
If you backed up to the previous file, you no longer can restore that file.

Thanks

J. Kusch
 
I thought that too

But, Here is what I did

backup DB to file1 (named A)
change data
backup DB to file1 (named B)

Perform Restore DB from Enterprise
Selected named A
It restored data before to original (same as when I backed up named A)

I was wondering how you can do this with Transact SQL
 
Refer to the Books OnLine. Use the Index tab and enter RESTORE DATABASE. Scroll down to the option for Transact-SQL and display that.

Look for the FILE option.

You can use FILE to tell the RESTORE which part of the backup to use.

-SQLBill
 
is value in the FILE option same as backupset.position column value?

 
If you select Full Recovery option using 'BACKUP DATABASE' does it automatically truncate the Log file after each backup operataion?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top