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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transaction Logs 1

Status
Not open for further replies.

rat22

Programmer
Aug 13, 2001
3
US
I am having problems truncating my transation logs.
I have logs in excess of 40 gigs and the BOL is very vague on the truncating of them. Any help would be helpfull

Regrads

Rat22
 
detach the tatabase by using exec sp_detach_db 'dbname', delete the log file and attach it again by using exec sp_attach_db 'dbname', 'path'. The log file has the extention .lds and the database .mdf John Fill
1c.bmp


ivfmd@mail.md
 
That method, tested on a test database, created a usless database that I cant even delet now becuae i cant reattatch the file. I unattateched it and deleted the log file, tried to recreate the file and reatatch and got the error
Server: Msg 823, Level 24, State 10, Line 1
I/O error 38(Reached end of file.) detected during read of page buffer.

Connection Broken

any other suggestions?
 
Check the following links for the correct way to shrink a transaction log.


faq183-345
Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top