Link to home
Start Free TrialLog in
Avatar of Darksbane
DarksbaneFlag for United States of America

asked on

SQL Server 7 Backup Transaction Log

Ok,

I have quite a few Transaction logs which are very large 5-6 Gig. I have just setup my transaction log to backup under the general maintence plan we have setup. Is that going to reduce the file size of those logs, or is there something else I need to do to get these things down to a manageable level.

Avatar of geotiger
geotiger

You need to trancate your logs.

This will truncate the transaction log for you:

DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
ASKER CERTIFIED SOLUTION
Avatar of mikkelp
mikkelp
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial