• jjimenez-1040959 - Tuesday, January 16, 2018 8:04 AM

    Jeff Moden - Tuesday, January 16, 2018 7:32 AM

    jjimenez-1040959 - Tuesday, January 16, 2018 5:10 AM

    In SSMS
    -Right click / properties on the database
    -In files section check the initial size and set it to a lower value
    -Click Ok

    Now the shrink file/database will work

    I always appreciate an answer even if it's a bit late.  Just so you know, your responding to a post that's over 9 years old. 😉

    I know, but I find the post today with the same problem.
    And was a little confused to see everybody telling "no you should not shrink database! Its bad ! gnagnagna " but without answering to the real question.
    I think that it good for the comunity to share when a solution is found.

    Bye

    Yep... very much appreciated and that's why I said what I said.  Also, you forgot one of the important parts for the solution. 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)