473,503 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reclaim disk space after DROP columns

Hello,

I tried to make what one reply advice to recover the disk space after
DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table
but nothing changes.

Any other solution?

Ignacio

Aug 2 '06 #1
5 2511
Be sure to run DBCC UPDATEUSAGE(0) so the the numbers reported about
page usage will be accurate.

Roy Harvey
Beacon Falls, CT

On 2 Aug 2006 12:41:55 -0700, "Nacho" <na*********@gmail.comwrote:
>Hello,

I tried to make what one reply advice to recover the disk space after
DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table
but nothing changes.

Any other solution?

Ignacio
Aug 2 '06 #2
Nacho (na*********@gmail.com) writes:
I tried to make what one reply advice to recover the disk space after
DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table
but nothing changes.
DBCC CLEANTABLE may be what you need to try.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 2 '06 #3
thanks a lot, it worked perfectly !!!!
Nacho

Roy Harvey wrote:
Be sure to run DBCC UPDATEUSAGE(0) so the the numbers reported about
page usage will be accurate.

Roy Harvey
Beacon Falls, CT

On 2 Aug 2006 12:41:55 -0700, "Nacho" <na*********@gmail.comwrote:
Hello,

I tried to make what one reply advice to recover the disk space after
DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table
but nothing changes.

Any other solution?

Ignacio
Aug 3 '06 #4
I have SQL 2005 express, when I send this command you told me(DBCC
CLEANTABLE ) the system doesn't recognize even the command
"cleantable".
What am I doing wrong?
Nacho

Erland Sommarskog wrote:
Nacho (na*********@gmail.com) writes:
I tried to make what one reply advice to recover the disk space after
DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table
but nothing changes.

DBCC CLEANTABLE may be what you need to try.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 3 '06 #5
Nacho (na*********@gmail.com) writes:
I have SQL 2005 express, when I send this command you told me(DBCC
CLEANTABLE ) the system doesn't recognize even the command
"cleantable".
What am I doing wrong?
Exactly which command did you use? This ran for me:

DBCC CLEANTABLE(usertest, lingondricka)

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 3 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2023
by: wriggs | last post by:
Hi, This is probably an easy question for someone so any help would be appreciated. I have changed the columns in a table that where nvarchar to the same size of type varchar so halve the...
5
7513
by: Yasaswi Pulavarti | last post by:
does a command like, db2 drop table tabschema.tabname when run from the Aix prompt reclaim the disk space? Are there any other options? How can we make sure the disk space is reclaimed? Thanks,...
4
9370
by: sandip | last post by:
Hi, Can anyone tell me how to calculate the ctual disk space needed for a table? The record length and number of records are known. A rough estimate of the disk space would suffice. Please...
0
2412
by: Kevin Bartz | last post by:
-----Original Message----- From: Kevin Bartz Sent: Monday, August 09, 2004 10:37 AM To: 'mike@thegodshalls.com' Subject: RE: Out of swap space & memory Thanks for your reply, Mike!...
1
3418
by: Nils Rennebarth | last post by:
I have a table that is essentially a log where new entries are streaming in continually and from time to time I throw old entries away to keep the table from growing. I understand that in...
5
2159
by: Konstantin Andreev | last post by:
Recently I became interested, - Are the data, bulk loaded in the table with LOAD utility, consume the same disk space as loaded with IMPORT utility? The answer turned out to be NOT ! Here is a...
1
1344
by: siskokid | last post by:
Good afternoon, I have the following question (it might seem silly, but it is important to have it straight) - which one takes more disk space a saved view in a SQL SERVER database (sql query that...
2
3498
by: asmpic | last post by:
Hi, I stumbled upon a script on the internet that monitors disk space and if it reaches a certain percentage being full it send an email. However, the problem I encountered was that one of the file...
8
4995
by: lbseong | last post by:
Good day, I felt this forum is good because the reply is fast and relevent. so, this is my second question... I am working on SQL2000, one of my db is use up around 250gb, and the hard disk...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.