Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 General Discussion
»
Clearing/Releasing data files
Clearing/Releasing data files
Rate Topic
Display Mode
Topic Options
Author
Message
onthedeck
onthedeck
Posted Thursday, February 19, 2009 1:57 AM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, March 26, 2009 3:04 AM
Points: 2,
Visits: 16
I recently installed SQL Server 2005 on a new machine. It all appears fine. I ran a large job and the job caused the following files dbname_SHOP_AREA, db_name_LOG1, db_name_LOG2 and db_name_LOG3 to be approx 40Gb in size. How do I clear these down? Is there a setting I have missed in install? or is this a manual task?
As the next time I run a job it uses up all remaining memory on the machine, so I would like this to free itself after each job completion, is this possible?
Thanks in advance.
Post #660111
Grant Fritchey
Grant Fritchey
Posted Thursday, February 19, 2009 6:44 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 1:09 PM
Points: 13,383,
Visits: 25,187
It sounds like the database is in FULL recovery mode. So you need to institute log backups. Depending on your data needs, you could set the database to SIMPLE recovery mode and then you wouldn't need the log backups, but you also wouldn't be able to recover to a point in time. After a log backup is completed, you should be able to shrink the files.
----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans
Product Evangelist for
Red Gate Software
Post #660246
GilaMonster
GilaMonster
Posted Thursday, February 19, 2009 8:08 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:17 PM
Points: 37,740,
Visits: 30,016
Please read through this -
Managing Transaction Logs
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #660378
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.