What are the challenges you face when working across database platforms? Take the survey

Restoring only the data files of a backup

matt.stanfordmatt.stanford Posts: 11
edited January 19, 2009 9:21AM in SQL Backup Previous Versions
I'm trying to find out if it is possible to restore only the data files from a full database backup. My issue is that on our production servers I have the transaction logs blown out to a fairly large size (60 GB in some cases), and I feed our reporting systems off of full backups of production. I don't care at all about having a 60 GB log file on our reporting system, but it is very inconvenient to have to maintain an extra 60 GB for a transaction log that I don't care about.

Ideally, I'd like to just restore the data files and just tell SQL server to rebuild the log (like you can do with an attach statement). I know this may cause inconsistencies but this isn't used for DR, just for feeding our ancillary systems.



  • Options
    Eddie DEddie D Posts: 1,789 Rose Gold 5
    Thank you for your post into forum.

    Unfortunately you cannot restore just the data files when restoring from a full database backup.

    If you wish wish to reduce the size of the transaction log after you restore the full backup. I recommend that you truncate the transaction log followed by shrink file command.

    The following SQL Server Books On Line articles contain further information on truncating the transaction log and running the Shrink File commands:

    Truncating the Transaction Log


    Shrink File Command


    I hope the above helps.

    Many Thanks
    Eddie Davis
    Senior Product Support Engineer
    Redgate Software Ltd
    Email: support@red-gate.com
Sign In or Register to comment.