Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Can not delete log files

Author  Topic 

jfrick
Starting Member

2 Posts

Posted - 2008-06-09 : 12:49:04
Hello All
I have a SQL 2005 server I inherited and am trying to clean up. I am unable to delete some log files. The databases they were associated with do not exist in sysdatabases. However, when I try to delete them I get the message they are in use. There are no other instances attached to this server.
Any help is appreciated.

mcrowley
Aged Yak Warrior

771 Posts

Posted - 2008-06-09 : 15:24:40
Check to see if these files exist in sys.master_files. If they do not, they can be deleted after SQL Server is restarted. Patch Tuesday is tomorrow, so you should be able to squeeze in a reboot in the next few weeks.
Go to Top of Page

jfrick
Starting Member

2 Posts

Posted - 2008-06-09 : 16:10:43
Thanks...I'll give it a try
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-06-09 : 22:43:07
Keep in mind that not every db file has name related to db name.
Go to Top of Page
   

- Advertisement -