Results 1 to 5 of 5

Thread: Shrinking/Compacting Data files and transaction Log files??

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Shrinking/Compacting Data files and transaction Log files??

    Hi

    How do I Shrink/Compact a Data file and transaction Log file within SQL server (2000) ??

    Thanks for your help
    ** HOLLY **

  2. #2

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Hi,

    Plz Help!!

    Does anyone know the answer??? Can this be done??

    Thanks

    ** HOLLY **

  3. #3
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Post

    In Enterprise Manager, right click on db, choose all tasks, then shrink database.

    Click files button at bottom of form, and change the combobox labeled database file to <databasename>_log.

    Then press okay.
    ~Peter


  4. #4

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Hi

    Thanks for replying, Your solution will only shrink the total amount
    of allocated space. I need to reduce the actual data size to
    1000mb and keep the allocated total at 2000mb ???

    Thanks




    ** HOLLY **

  5. #5
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Wink

    If it's that big, it means it has that much data in it.

    Make sure you're using varchar instead of char datatypes.
    ~Peter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width