Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 DBCC SHRINKFILE in sql2008

Author  Topic 

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2010-09-25 : 05:59:41
Dear Member
Please tell me
what is process of shrinkfile ldf file in sql2008 or
How to use the DBCC SHRINKFILE statement to shrink the transaction log file in SQL Server 2008

thnaks in advance

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-09-25 : 13:04:20
Why do you want to shrink it?

What recovery model are you using? If it's FULL or BULK_LOGGED, then how often are you backing up the transaction log?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2010-09-28 : 02:26:46
my recovery model is full
my database size is 11 GB
ldf file size of my database is near about 4 GB
i have give a log backup to every 1 hour this the log file size are near about 700 to 900 mb and i think it is very high
so i have shrink ldf file to minimize size.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-09-28 : 13:19:18
You should not shrink it based upon the information you posted. What you are seeing is normal.

Backup your tlog more often if the size is a concern. We backup ours every 15 minutes.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -