May 17, 2005 at 2:20 pm
How do I remove the text page allocated to a text field after I've deleted the text in the field? Setting it to NULL doesn't appear to do the trick either. I'm basing this on the fact that I set all of my text fields to NULL but I still have the same amount of space used as reported by sp_spaceused.
May 17, 2005 at 2:37 pm
The database doesn't shrink when you delete data from it.
It happens only when you shrink it.
Look up DBCC SHRINKDATABASE in bol.
May 17, 2005 at 2:43 pm
Doesn't it also shrink when you back it up?
I wasn't born stupid - I had to study.
May 17, 2005 at 3:16 pm
I was refereing to the size of the table as reported by sp_spaceused (i.e sp_spaceused 'tablename').
May 18, 2005 at 4:22 am
you can use dbcc cleantable(tablename). This will clean the table if any of text or varying field length column deleted from table.
May 18, 2005 at 6:56 am
I didn't know it happens with a backup!!! Is it implicitly done or do you explicitly force a shrink ?! What is the syntax ?
**ASCII stupid question, get a stupid ANSI !!!**
May 18, 2005 at 3:07 pm
Sushila,
I could be wrong (and it wouldn't be the first time today) but I think he's referring to having the Auto-Shrink option turned on which isn't always a good option in some installs.
My hovercraft is full of eels.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy