Subscribe to
Posts
Comments

I have not used the developer edition of SQL server on my laptop machine for a long while. When I try to turned on SQL server today I found it couldn’t start. When I check the event log there was an error message related to SQL server service like this.


“The file “C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA\mastlog.ldf” is compressed but does not reside in a read-only database or file group. The file must be decompressed.”

I remember the free space on my laptop machine was running low and windows ask me to compress the files that were not use frequently. So that was the reason cause this error. I looked at the property of the MDF and LDF files. At the advance tab the check box “compress content to save space” was checked. So I unchecked this box and save. After that SQL server can start without problem


Related Posts:

  • Filegroup
  • How to Separate Data and Indexes of a Table into Different Files
  • MySQL vs SQL Server in Data File Management
  • How to Prevent Innodb Data File Keep Growing
  • Recover Data Using Transaction Log


  • 1 Star2 Stars3 Stars4 Stars5 Stars (10 votes, average: 5 out of 5)
    Loading ... Loading ...

    RSS feed | Trackback URI

    17 Comments

    Comment by Tom
    2010-01-03 18:22:37
    MyAvatars 0.2

    You just saved me the biggest headache!
    Thank you!

     
    Comment by L
    2010-06-25 00:18:35
    MyAvatars 0.2

    :smile: many thanks sir, its a huge help :smile:

     
    Comment by Abhishek Sur
    2010-11-20 01:23:54
    MyAvatars 0.2

    Cool, it just worked 4 me too…

    Cheers
    :grin: :grin:

     
    Comment by Will K
    2011-01-27 13:22:54
    MyAvatars 0.2

    This happened on my SQL 2005 express instance which was installed with Backup Exec 12.5. All of the BE DB’s and Log files were marked for compression. You saved me a ton of time and headaches! Thanks!

     
    Comment by DeJunk
    2011-03-29 21:28:18
    MyAvatars 0.2

    Thank , this work :mrgreen:

     
    Comment by sonador
    2011-05-07 07:23:05
    MyAvatars 0.2

    it works!thanks

     
    Comment by Sajid Subscribed to comments via email
    2011-06-29 10:00:17
    MyAvatars 0.2

    You are a start … saved my time and head!!!

    THANKS!

     
    Comment by ngtrphuong
    2011-07-28 23:51:51
    MyAvatars 0.2

    Work like a champ,
    Thanks for your great topic,

     
    Comment by IVAN
    2012-02-22 12:50:36
    MyAvatars 0.2

    SAVED ME A HUGE HEADACHE. GOOD CARMA TO YOU.

     
    Comment by Wes
    2012-03-31 09:28:11
    MyAvatars 0.2

    I got this error but Windows XP SP3 did not have the “Compress contents to save disk space” checked. So I unchecked the “File is ready for archiving” and “For fast searching, allow Indexing Service to index this file” as those were checked.

    The error message was not seen after this.

    Just an FYI.

     
    Comment by Andy
    2012-04-10 13:25:00
    MyAvatars 0.2

    Thank you very much, I’ve been scratching my head trying to figure this out on my own to no avail. Your post is spot on! :grin:

     
    Comment by emmfajis
    2012-06-11 10:21:13
    MyAvatars 0.2

    Thank you for saving my life from trouble

     
    Comment by chalmers
    2012-07-10 12:31:43
    MyAvatars 0.2

    I’ve been searching for so long for a solution…THANKS SO MUCH..you helped me a LOT!!!

     
    Comment by NIZAMUDDIN Subscribed to comments via email
    2012-07-18 23:51:24
    MyAvatars 0.2

    Friends,

    If you are getting this error while the database is restored on new server,then you need to uncheck the box “compress content to save space” in advance option of the folder where you specified the location of the mdf file.

    right click on the folder and go to properties and click on advance tab and u will check this option “compress content to save space”

    For eg:
    My location for mdf file in new server was “E:\MSSQL\SIGCAP\DATA” so i unchecked the box for folder “E:\MSSQL”

    I successfully restored the backup.

    Regards
    Nizam

     
    Comment by web hosting
    2012-09-27 04:44:22
    MyAvatars 0.2

    Тhanks for sharing уour thοughts abоut Random
    thoughts and newѕ by Andrew Chen and friends.
    Regаrԁs

     
    Comment by Kalyan
    2012-09-28 03:04:04
    MyAvatars 0.2

    It works.
    saved me a lot of grief!

    Thanks.

     
    Comment by Zaksh
    2012-10-01 06:54:39
    MyAvatars 0.2

    Sir thanks alot, It saved alot of time and worked like a charm :smile:

     

    Sorry, the comment form is closed at this time.