Detached DB in Temp folder

  • I am looking to free up some drive space and ran across a large MDF and LDF file located in PF\MSS\MSSQL\DATA\TEMP on the server drive. I do not see this particular database as being attached to the instance however it looks like it has recent backups in the Backups folder. Any ideas how this is possible?

  • do you have an additional instance of SQL on that server? maybe the isntance is using that mdf and not the default instance?

    if you

    select * from master.sys.sysaltfiles

    do you see that mdf file name?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • How recent are the backups?

    Were you able to check the maintenance plans or any backup job etc?

    M&M

  • I feel embarrassed now... It has another instance that I was not aware of.

    Thanks guys!

    Lowell (5/24/2011)


    do you have an additional instance of SQL on that server? maybe the isntance is using that mdf and not the default instance?

    if you

    select * from master.sys.sysaltfiles

    do you see that mdf file name?

  • Check the Backupset and backupmediafamily tables in msdb.

    You will get the recent backups.

    Muthukkumaran Kaliyamoorthy
    https://www.sqlserverblogforum.com/

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply