Database MDF File Size Issue

  • Hi,

    I have a Database which size is 80 GB, and It has duplicate table for all tables. So I dropped these necessary tables by using Drop Table query but my database file size is still 80 GB but now its size should be 40 GB, So can any one tell me why the size of database doesn't reduced and how can I do so.

  • In SQL Server Management Studio, Right Click the database | Tasks | Shrink | Files

    Choose the Appropriate file and options.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • will you please explain it

  • You can use DBCC SHRINKFILE

    For more details please visit

    http://msdn.microsoft.com/en-us/library/ms189493.aspx

  • The options are described on TechNet

    If there are anything particular that seem unclear too you, please tell.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • amitsingh308 (7/11/2012)


    will you please explain it

    When you drop objects from the database the files do not automatically reduce in physical size

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Hi Amit,

    Simple way to understanding when you drop a table, table will gone but the space will not reduce of physical database, so please shrink it. Shrink like a fragmentation task.

  • Thanx to every on Problem has been resolve by database file srinking.

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

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