Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Blob data pages have a lot of unused space.

$
0
0

I have a table with blob data that has a truckload of unused space that I can't get rid of.  

SELECT * FROM sys.dm_db_index_physical_stats

    (DB_ID(N'Test_dbname'), OBJECT_ID(N'tableName'), NULL, NULL , 'DETAILED');
GO

Shows:

  

alloc_unit_type_descavg_page_space_used_in_percentrecord_countghost_record_count
IN_ROW_DATA  99.0901902643934125490720
IN_ROW_DATA  99.81305905609092272150
IN_ROW_DATA  50.17296763034354780
IN_ROW_DATA  0.39535458364220420
LOB_DATA63.1606004447739629731630

Thus I'm wasting huge amounts of space.  If I select all the data into another table it compacts at 100% give or take.  

SQL 2008, spk1.  I don't believe the table ever held text data.   Varbinary and Image are in the table.  


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>