who is right? windows tempdb.ndl file is larger than SQL says

  • How come?

    According to Mr. Windows Filesystem, my TEMPDB3.NDL (yes, I use 4 files) is 1,2 GB, but Mr. SQL Server says it's just an innocent 600MB file, 98% empty. Who is right and who is wrong? Why does this happen?

  • How are you getting the size from SQL?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • sys.database_files and SP_SPACEUSED both give me correct numbers.

    The error is only is at {right-click on the database in SSMS} -> [tasks] -> [shrink] -> [files]

    The numbers there are different.

  • I'm on sql 2K5 SP3 standard 32 bit

    and I've seen similar issues. I don't remember if it was for the data or log file(s), but I've seen on several occasions total size @ -50 MB instead of 1+GB

    I never pursued this to find a solution.

  • Run DBCC UPDATEUSAGE

    Shouldn't be necessary on SQL 2005 SP3+

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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