on 01-20-2012 9:55 AM
Hi experts,
I have a table with 99.9% of unused size(9GB). How do I reduce the size?
I have tried those commands below but they do not work.
ALTER INDEX [VBDATA~0] ON qa2.VBDATA REBUILD
DBCC CLEANTABLE (QA2,"qa2.VBDATA", 0)
WITH NO_INFOMSGS;
GO
ALTER INDEX ALL ON qa2.VBDATA REBUILD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dennis,
You need to run the command
update <table name> set MyValue= <New value >
<New Value> value to which you want your table size to be.
Regards,
Deepak Kori
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi deepakkori,
Thanks for your help. I have found the solution.
"Also other option which you could try is :
ALTER INDEX Index_name on Table_Name REORGANIZE WITH (LOB_COMPACTION=ON)"
you can check full discussion here:
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.