Shrink Db problem

  • Hi All,

    I have an 8GB db.  After deleting half of the data in that db and shrinking it, I expected my db would be down to 4GB; however, in the EM, I still saw my db as an 8GB of db.  Please advise.  How can I make it down to 4GB.

    Thanks,

    Minh Vu

  • check out dbcc shrinkdatabase in bols (not totally sure of the syntax).

  • I did shrink the db by using dbcc, but the problem was my db did not got shrunk at all.

    Minh

  • What type of data did you delete?

  • text data

  • That's you problem... The only solution I know to that problem is to recreate the table (without the text columns, but EVERYTHING else), reship the data to the new table and drop the old table. Then the shrink will work.

  • After I shrink a database or file, I always run DBCC UPDATEUSAGE. EM tends to give wrong information until that is run.

    -SQLBill

  • yup ... another vestige of the original Sybase code base ...

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 8 posts - 1 through 7 (of 7 total)

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