Embed
Email

Resizing database log file

Document Sample

Shared by: xiang
Categories
Tags
Stats
views:
0
posted:
11/7/2011
language:
English
pages:
2
Resizing the Hedberg database log file







RESIZING THE HEDBERG DATABASE LOG FILE





Why would you do this?



There are times when the transaction log portion of the database gets much

larger than even the data portion of the database. That can happen if transaction

log backups are not being done or do not successfully complete.









How would you do this?



Here is a process to resize the Hedberg database log file while users are still on the

system. This process is for SQL2K databases and will only work if the current recovery

model (check the Options tab under database Properties in Enterprise manager) is set to

FULL.



Here are the steps:



1) Through MS SQL Query Analyzer, back up the database.



2) In Enterprise Manager right click on database you wish to shrink the log and select

Properties. Under Properties select the Options tab. In the Options tab select

"Simple" under recovery model (assumes recover model was "Full").



3) Select OK



4) Right click again on the database and select All Tasks\Shrink Database



5) In the Shrink Database screen select "Files" button in lower right



6) In the Shrink File Screen select Hedberg_Log in the Database file drop down box.



7) Select OK to begin the file shrink. Once complete a Shrink Successful box will

appear.



8) Back at the Shrink Database screen select Cancel



9) At this point your log file should be very small



10) Right click again on the database and select Properties. Select the Transaction Log

tab and resize the log to 75% of the database data file. Enter the size (MB) in the

space allocated section and select OK.



11) Right click again on the database and select Properties. Select the Options tab. In

the Options tab select "Full" under recovery model. This will allow you to backup

your transaction log. Select OK







Hedberg Data Systems 9/4/2003

Resizing the Hedberg database log file







12) Backup your database (transaction log backups will error unless a full database is

performed). Your users will not be affected.









Hedberg Data Systems 9/4/2003



Related docs
Other docs by xiang
The Parable of the Rich Fool
Views: 23  |  Downloads: 0
14838-Nat.Equest Summer 08-2
Views: 7  |  Downloads: 0
kompendium_februar_01
Views: 1  |  Downloads: 0
Antimikrobielle Wirkung ausgewhl
Views: 2  |  Downloads: 0
Vietnamese BULLETIN vietnamien
Views: 1  |  Downloads: 0
Information Retrieval Models and
Views: 19  |  Downloads: 0
Download our Menu - Aveda Institutes
Views: 2  |  Downloads: 0
Journ茅e mondiale de l'hydrograph
Views: 2  |  Downloads: 0
SJSAS
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!