This is a discussion on Sql server 2005 Database Maintenance within the Server Management forums, part of the Servers and Hosting category; Hi All, i am looking through the data files directory for my databases and noticed that the log (ldf) files ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi All, i am looking through the data files directory for my databases and noticed that the log (ldf) files of some of the databases are from 2GB to 4.5GB where as the data files are under 500MB. If I shrink the log files what affect does this have on the database? Should I be setting up regular shrink jobs on the log files?
__________________ A.Rajesh Khanna |
|
#2
| |||
| |||
| This is a common issue and its been discussed again and again. check this thread http://www.discussweb.com/server-man...ql-2005-a.html
__________________ J Suresh Kumar Google Hacks ![]() |
|
#3
| |||
| |||
| Hi jsureshkumar, Thanks for that. Just a few questions. My Data file is 1148MB. The log file is 2537MB. The recovery model is full. The log file has never been backed up. Just to confirm. Should I : 1. Backup the log file 2. Truncate the log file 3. Shrink the log file 4. Do a Full backup. 5. Schedule regular log backups. Currently a full backup is run every night. I am using SQL 2005. Thanks for your help in advance.
__________________ A.Rajesh Khanna |
|
#4
| |||
| |||
| Hi, Do you want POINT IN TIME Recovery of your database? If you need , then keep the full recovery model otherwise you can switch to Simple. If you are in full recovery model , then you should have a job which does TL backup at regular interval. Frequency is again depends upon the growth. 1. Backup the log file : Instead take Full Backup not TL backup 2. Truncate the log file : Yes 3. Shrink the log file : Yes 4. Do a Full backup. : Yes, coz otherwise the backup chain breaks 5. Schedule regular log backups.: Yes
__________________ J Suresh Kumar Google Hacks ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Server 2000 migration to SQL Server 2005 Collation Change - Method? | arjkhanna | Database Support | 5 | 10-02-2009 09:58 PM |
| Unable to save string data into a table in SQL Server 2005 database | tskmjk | VB.NET Programming | 0 | 10-07-2008 03:12 AM |
| Server Assessment for Sql server 2005? | arjkhanna | Server Management | 3 | 10-30-2007 10:09 AM |
| How to Move a database in SQL 2000 to 2005 ? | nnraja | Server Management | 2 | 10-29-2007 12:08 AM |
| What is a Linked Server in sql server 2005? | Archer | Database Support | 2 | 08-14-2007 03:24 AM |
Our Partners |