Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)

  • RE: How to free table space

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

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    Run a dbcc checktable and determine if there is any corruption.

    It's when you don't like good news :crazy:

    CHECKDB found 0 allocation errors and 0 consistency errors in database 'MyDatabase'.

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    Is this table replicated?

    Yes but not on stage where I currently do testing.

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    raistlinx (9/27/2010)


    getoffmyfoot (9/27/2010)


    Yea, the drop/create table is brutal...

    Maybe I am missing something here, could someone elaborate on why this is not good in this situation?

    There used to be...

  • RE: How to free table space

    Derrick Smith (9/27/2010)


    Just for kicks, try this:

    Delete from tablename ( with tablock )

    see if it changes the data size, which should be 0.

    Will do a little later after running DBCC...

  • RE: How to free table space

    Hmm... even TRUNCATE didn't work! Any suggestions before I re-created the table?

  • RE: How to free table space

    Derrick Smith (9/27/2010)


    Have you tried doing ALTER TABLE tablename REBUILD ?

    ALTER TABLE tablename REBUILD did not change any table size returned by sp_spaceused

  • RE: How to free table space

    miksh (9/27/2010)


    unused[/b] space which is based on sp_spaceused 1864 KB while reserved space...

  • RE: How to free table space

    Derrick Smith (9/27/2010)


    Run this and see if there's an index using more space than the others (significantly, anyway). Replace the tablename_here with your table name

    select

    '['+DB_NAME(database_id)+'].['+c.name+'].['+d.name+']' as [DB.Table]

    ,b.name as [Index...

  • RE: How to free table space

    getoffmyfoot (9/27/2010)


    Yea, the drop/create table is brutal... however what about drop/creating all the indexes if they won't shrink? if the table has 0 rows that seems like a pretty safe...

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    Update statistics and DBCC updateusage.

    Well, it didn't help.

  • RE: How to free table space

    CirquedeSQLeil (9/27/2010)


    Did you recently perform a delete operation on this table that removed all records? Or ever?

    Yes we did. Recently we kept data allocating ~1.5GB and now decided to...

  • RE: How to free table space

    Hmm.... very brutal solution. Anything else possible for SQL 2005?

    Btw, Shrink Dtabase/File Task dialog in Mgmt Studio shows that the only 3GB could be freed but that table has 8GB...

Viewing 13 posts - 16 through 28 (of 28 total)