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

urgent SQL Server database/log backup problem 1

Status
Not open for further replies.

peterve

IS-IT--Management
Joined
Mar 19, 2000
Messages
1,348
Location
NL
Hi,

I have a database (about 9Gb)
The logfiles are 27Gb
I want to set up a backup schema (using the embedded backup jobs)
that :

makes 2 full backups of the database per week
makes a daily backup of the transactional log

My biggest concern is the transactional log
When I click the option to remove unused entries from the log, will it clean up the transactional log (as soon as I did a full backup of the database) ?
(I want to make sure that I only have to backup the transaction logs between the two days I will backup the database, AND that the transaction logs are cleaned up the first time I run the backup of the log after I full backed up the database...)

Is this how it works ?
What would happen if the logfile takes all remaining disk space ?
When backing up the database to disk (to another disk), it gives me an error..
so I can't backup the database anymore, which means that backing up the transaction log will not change anything to the size of the log file...

Can I delete the logfiles,
take a full backup of the database,
recreate a new logfile
and set up the backup schema for both database and logfile ?

How can I solve this ? ---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------------------------------------------
Peter Van Eeckhoutte
peter.ve@pandora.be
*:->* Did this post help? Click below to let me know !
 
You asked, "Can I delete the logfiles, take a full backup of the database, recreate a new logfile and set up the backup schema for both database and logfile?"

The answer is yes. Check this link, first.

Quickly Shrinking the Transaction Log

I recommend the following links for additional information on shrinking the transaction log and database.

NOTE: MOst of these links are for SQL 2000. The information can usually be applied to SQL 7 also. Sometimes, the pages have links to a similar document for SQL 7.

Shrinking the Transaction Log

Shrinking Databases

Development of a backup strategy is critical. The strategy chosen will vary from site to site and from database to database. For example, transaction backups for an OLTP DB will certainly be more frequent than for a DB that is only updated a few times per day. You would be wise to review backup topics in SQL BOL. I recommend the following links for discussion of backup strategies.

Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top