Results 1 to 5 of 5

Thread: How to compress .mdf file in SQL2000

  1. #1
    Join Date
    Feb 2010
    Posts
    678

    How to compress .mdf file in SQL2000

    Hi all,

    I am using SQL 2000 in my office. I have lots of data in SQL, I want to compress the output data that is on mdf format in SQL , but not succeed. I also usedsome third party tool, but it will create a problem with SQL. Can anybody suggest me how to compress .mdf file in SQL2000. Please help. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    How to compress .mdf file in SQL2000

    First of all you have to find your largest tables in the database, generally the largest number of tables, if not clear, in the Query Analyzer query by:

    Code:
    DBCC SHOWCONTIG
    then sp_spaceused Table To query the reserved values and data values can differ by more seem redundant in the table. Check and reply.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    How to compress .mdf file in SQL2000

    You also need to copy of your transfer of data from old table to the new sheet;
    Code:
    SELECT * INTO new FROM old table table
    If you have the data are more likely to be compressed you will see the corresponding database mdf and ldf file size in the surge, nothing in the replication tables. This command can not complete copy of the database node structure, require you to re-new table the old table and the corresponding primary key, automatic increase in value, index, the default value, etc. Change. Check and reply.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    How to compress .mdf file in SQL2000

    You also updated the look of SQL document by this command:

    Code:
    DBCC UPDATEUSAGE (0)
    Remove the old table, and then change the name of the new table the old table name, which can go to Enterprise Manager where operation. Shrinking mdf file, and most want to achieve a step,

    Code:
    DBCC SHRINKDATABASE ( 'Library Name')
    DBCC shrinkfile (2,0)
    DBCC UPDATEUSAGE (0)
    2 is use for to shrink the file fileid, corresponding to sysfiles in fileid and 0 is used for shrink to the original size of the. check and reply.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to compress .mdf file in SQL2000

    You should noted down that the Scarlet Letter is a contraction of your database mdf file, the time may be a bit long; blue word is shrinking ldf files; purple character is to update the look, non-important. You should be able to see changes in the database mdf file size differences, did not say dozens of M, I shrink the database from 6G to 1G is about to execute the query again, some of the data is obviously much quicker. Best of luck.

Similar Threads

  1. need assistance to compress an excel 2010 file
    By Vento in forum Windows Software
    Replies: 5
    Last Post: 28-03-2012, 03:25 PM
  2. How to Compress old files
    By NICOLASA in forum Operating Systems
    Replies: 3
    Last Post: 06-07-2009, 11:32 AM
  3. Unable to compress a file
    By EULALIA in forum Windows Software
    Replies: 3
    Last Post: 13-05-2009, 11:56 PM
  4. Compress each file with automator
    By Ximen in forum Software Development
    Replies: 3
    Last Post: 21-04-2009, 01:07 PM
  5. How to Compress/ decompress a file in linux
    By Becse in forum Operating Systems
    Replies: 2
    Last Post: 09-01-2009, 03:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,868,003.65394 seconds with 16 queries