Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)

  • RE: How to free table space

    Seraj Alam-256815 (10/25/2010)


    Hi,

    Did you run "sp_spaceused @updateusage= 'true'"? Hope it fixes.

    Alternately, pl try below;

    Create a filegroup and aleter table to move to the new file group.

    Then again move the table...

  • RE: How to free table space

    Juliet20120 (10/25/2010)


    You can run Truncate table to free space.

    Juliet20120, please read the entire post.

  • RE: How to free table space

    Oksana March (10/23/2010)


    Miksh, I am trying to understand this better, why was dropping and recreating the table not a desirable solution that you left as a "last resort"? I ask...

  • RE: How to free table space

    Yujie Fu (10/22/2010)


    Did you try

    Truncate table mytable

    Yes, it released a table space but in production we did DELELE and stuck with the issue.

  • RE: How to free table space

    After working with Microsoft the workaround was found:

    There is a known issue where on a database having a LOB data in it, the SHRINK operation will only shrinks one empty...

  • RE: How to free table space

    Yes, I did DBCC CleanTable. Also, in my earlier results for DBCC SHOWCONTIG the ForwardedRecords=0 as any other field except ScanDensity=100.

    I'll try to contact MS and let you know.

  • RE: How to free table space

    Yes, might be an issue - I'll investigate tomorrow but now here is results of your script

    DatabaseNameobject_idTableNameforwarded_record_countindex_type_desc

    Test2045250341MyTable0HEAP

    Test2089058478sysdiagramsNULLCLUSTERED INDEX

    Test2089058478sysdiagramsNULLCLUSTERED INDEX

    Test2089058478sysdiagramsNULLNONCLUSTERED INDEX

  • RE: How to free table space

    CirquedeSQLeil (9/28/2010)


    I find that extremely odd. Can we get the DDL for this table? Including the indexes?

    CREATE TABLE [MySchema].[MyTable](

    [ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,

    [RcID] [int] NOT...

  • RE: How to free table space

    Really weird. I removed everything in db except that table and everthing inside the table except columns (row count = 0) and the size issue is still over there. Neither...

  • RE: How to free table space

    Well, finally I gave up and dropped and created the table.

    Before that I removed everything from that table (PK, FKs, indexes, constraints) and run delete, truncate but nothing has changed...

  • RE: How to free table space

    Michael Valentine Jones (9/27/2010)


    Have you verified that the table is not a heap (has a clustered index)?

    It has a cluster index but right now I removed ALL indexes, run 'delete...

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    check dbcc opentran

    I wonder if there is something that is preventing the table from releasing space

    Also, is the db in full or simple?

    No active open transactions (it was restored...

  • RE: How to free table space

    Derrick Smith (9/27/2010)


    Try deleting with (tablock) also, when you get a chance.

    Or better yet, drop the indexes so the table is a heap, then delete with tablock, then recreate the...

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    To recap:

    sp_updatestats did not work

    dbcc updateusage did not work

    dbcc checkdb shows no corruption?

    The table is replicated

    Index Rebuild did not work

    Truncate table did not work

    Are there any pending replication actions?

    Nothing...

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    miksh (9/27/2010)


    Btw, one of the columns of XML type if it helps you.

    How many indexes?

    Have all indexes been defragged / rebuilt?

    Yes, even dropped and created

Viewing 15 posts - 1 through 15 (of 28 total)