![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
I have a client with 150MB database, the transaction log file is nearly 23GB. It's a PITA for me to backup his data and restore it on my server as it takes about 30 minutes to restore as it re-creates a 23GB file with no transactions in it :-\ |
|
As well as the space taken up by it, does it do any harm being that size? e.g. does it decrease performance? |
|
While it's there, considering the database is backed up daily, does it actually do any good? |
|
I know how to truncate and shrink logs, is it advisable / safe / worthwhile to do this on a regular basis? |
#3
| |||
| |||
|
|
"Trevor Best" <googlegro... (AT) besty (DOT) org.uk> wrote in message news:1179743114.957187.301860 (AT) b40g2000prd (DOT) googlegroups.com... I have a client with 150MB database, the transaction log file is nearly 23GB. It's a PITA for me to backup his data and restore it on my server as it takes about 30 minutes to restore as it re-creates a 23GB file with no transactions in it :-\ Why is it that large? |
|
I'd find out first why it's a 23GB transaction log file. If it's a fluke, then yes, a single shrink to a more reasonable size is probably ok. My guess is at some point they simply were NOT doing transaction log backups and as a result it just kept growing. So they either instituted transaction log backups (good) or put the database into "SIMPLE" recovery mode (potentially bad) and just left the log file the size it was. |
#4
| |||
| |||
|
|
On May 21, 12:36 pm, "Greg D. Moore \(Strider\)" mooregr_deletet... (AT) greenms (DOT) com> wrote: "Trevor Best" <googlegro... (AT) besty (DOT) org.uk> wrote in message news:1179743114.957187.301860 (AT) b40g2000prd (DOT) googlegroups.com... I have a client with 150MB database, the transaction log file is nearly 23GB. It's a PITA for me to backup his data and restore it on my server as it takes about 30 minutes to restore as it re-creates a 23GB file with no transactions in it :-\ Why is it that large? I think it has 18 months worth of transactions in it. (I'm not their dba :-) |
|
I'd find out first why it's a 23GB transaction log file. If it's a fluke, then yes, a single shrink to a more reasonable size is probably ok. My guess is at some point they simply were NOT doing transaction log backups and as a result it just kept growing. So they either instituted transaction log backups (good) or put the database into "SIMPLE" recovery mode (potentially bad) and just left the log file the size it was. I did set up backup of db and logs and maintenance plans on their server when it first installed (Aug 05), I just checked and Agent isn't running so I guess he normal maintenance plan hasn't run. I hope they backup the database some other way :-\ Thanks for your comments. |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |