Unix Technical Forum

shrink database files and log files

This is a discussion on shrink database files and log files within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> Hi is this a good practice if I shrink the database files and its log files after each day's ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:15 PM
JJ Wang
 
Posts: n/a
Default shrink database files and log files

Hi

is this a good practice if I shrink the database files and
its log files after each day's full backup? Is this a
good practice for data warehouse databases?

many thanks.

JJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:15 PM
Varad01
 
Posts: n/a
Default shrink database files and log files

I cannot say whether its a good practise or not. But I can
say some disadvantages.

1. During the ETL process, the data file log file grows
accordingly.
If you truncate daily, then everyday during the ETL
process, the data file & log has to grow accordingly which
increases the sql server tasks, since it has to allocate
extents/pages every day, which makes the load process slow.
Basically the data/log files which are made to increase
by % or by some constant value has to keep growing
everyday. This consumes lot of disk acitivity, IO,
processes too.

-Varad

>-----Original Message-----
>Hi
>
>is this a good practice if I shrink the database files

and
>its log files after each day's full backup? Is this a
>good practice for data warehouse databases?
>
>many thanks.
>
>JJ
>.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com