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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filegroup Backup And Restore

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have come across an example in a book I don’t quitefeel comfortable with. It concerns backing up a database by filegroup.

A database has three filegroups. One filegroup is backed up per night so that any given filegroup will be backed up once over a three day period. The transaction log is backed up daily.

The example states that if one of the file groups were to become corrupt during the day, the correct solution would be to restore the damaged filegroup only; and then apply the transaction log backup. The transaction log would of course be applied from the point just after the file group backup had been taken.

For this method to work, it must mean that when the transaction log is applied, any transactions that involve tables in the other filegroups will not be duplicated.
How does SQL Server manage this? Does a transaaction log restore actually rewind all transactions across all file groups from the restore start point - and then re-apply the transactions across all filegroups?



Dazed and confused
(N+, MCAD)
 
Honestly I've never tried. I've never liked the idea of backing up only a single file group. My best suggestion would be to give it a try on a test system.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top