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 log deletion

Status
Not open for further replies.

fuller772

Technical User
Jan 10, 2004
49
US
I have been trying to get rid of a 2nd transaction log that is not needed on a database. I have tried dettaching the db > deleting out the ldf file in windows explorer > and then reattaching the db.

The tran log I deleted shows up on the reattach with a red x and fails to reattach the db. Am I doing something wrong? or is there an easier way of deleting a tran log?

Any help is appreciated.
 
You'll need to tell the SQL Server to empty the file and then delete the file with the alter database command.

Look at the dbcc shrinkfile and alter database commands in Books OnLine.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top