Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transaction Log

Status
Not open for further replies.

ninelgorb

Programmer
Mar 7, 2005
111
0
0
US
I have a database whose transaction log is 22867.367 mb. I need to truncate it. I used the following command:
backup log mydatabase with truncate_only and the only difference I noticed was that the Log Space Used went down. The Log size didn't change.

What commands should I be using to truncate the transaction log?
 
You did truncate the log. All truncate does is remove data from the log file.

To get rid of the unused space, use DBCC SHRINKFILE. Refer to the BOL for more information.

-SQLBill

Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top