Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Remove extra transaction log files from sql server 2000 database

Avatar of RekhaShah
RekhaShah asked on
Microsoft SQL Server
15 Comments1 Solution1825 ViewsLast Modified:
Hi Experts,
 I am working with SQL server 2000 and have a database that has multiple transaction log file.
I need to remove the extra transaction log files and keep only one. Attached is the code that I am planning to execute. I am NOT A DBA but have this responsibility to perform this task.
Attached are also  screenshots of maintenance plan and transaction log properties.
Please advice if the steps I am about to take are correct or not and any other steps should I be taking or not. I have seen a similar question posted on EE, but I am just nervous since this is the production server and I can not afford to loose any data.
Please advise ASAP since my transaction log is filling up the drive and I must clean up ASAP.
Thank you in advance.

DBCC SHRINKFILE(ResQCX32_2_log, 100)
 
BACKUP log ResQCX32 WITH TRUNCATE_ONLY
 
DBCC SHRINKFILE(ResQCX32_2_log, 100)
 
DBCC SHRINKFILE (ResQCX32_2_log, EMPTYFILE )
 
ALTER DATABASE ResQCX32 REMOVE FILE ResQCX32_2_log
Doc1.doc
ASKER CERTIFIED SOLUTION
Avatar of Dimitris
DimitrisFlag of Greece imageSenior Solution Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers