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.
| Author |
Topic |
|
beza
Starting Member
16 Posts |
Posted - 2009-05-27 : 05:01:00
|
| HeyI have a pretty big Transaction log file (almost 900MB) and I would really like to clear it ...Is it possible ?? if yes, how do I do it ??Thanks a lot |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-05-27 : 05:13:28
|
Back it up regulary. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
beza
Starting Member
16 Posts |
Posted - 2009-05-27 : 05:37:07
|
| What do you mean back it up regularlyI want to clear it! ...I don't know if the DB has a need for it ...is it like a regular log ?? I want to get it back to 2-3 MB and start all over again |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-05-27 : 05:43:03
|
To "clear" the log fil, you have to either do a full backup of the database, or a log backup.Then you can SHRINK the log file. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
beza
Starting Member
16 Posts |
Posted - 2009-05-27 : 05:53:14
|
| What do you mean by doing a full backup or log backup ? Do I need to save it somewhere else ?? would I need it for something in the future ??and if you can please explain how to do the backup it would be great!Thanks a lot for your help!! |
 |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2009-05-27 : 10:38:24
|
| Please read through this - [url]http://www.sqlservercentral.com/articles/64582/[/url]It's not a log like an error log. The transaction log is used by SQL for recovery and to ensure transactional consistency at all times.--Gail ShawSQL Server MVP |
 |
|
|
|
|
|