Unix Technical Forum

shrink file tool from EM took all the empty space allocated to data file

This is a discussion on shrink file tool from EM took all the empty space allocated to data file within the SQL Server forums, part of the Microsoft SQL Server category; --> I've production sql server 7 sp3 on windows NT. I had a 8GB data file of which 5GB were ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:47 PM
SP
 
Posts: n/a
Default shrink file tool from EM took all the empty space allocated to data file

I've production sql server 7 sp3 on windows NT. I had a 8GB data file of
which 5GB were used and 3GB were unused. I wanted to take back the unused
3GB.
So I did the following with EM GUI:
1. I tried to "truncate fre space from end of the file". Didn't truncate
the file. I believe there was no empty space at the end of the file.
2. Next I chose the option to "shrink file to 5GB". And to my horror the
data file instead of taking just 5GB took the empty spaces also and the size
of the used data file went to 8GB.
Any idea what's going on?
TIA,
SP


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:47 PM
Tibor Karaszi
 
Posts: n/a
Default Re: shrink file tool from EM took all the empty space allocated to data file

Do you have text and image data? If so, it might be:
http://support.microsoft.com/default...27&Product=sql

I suggest you search KB for SQL Server for the word "shrink", I got hit on
number of KB articles.

--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=d...blic.sqlserver


"SP" <sdpantDeleteThisToReply@yahoo.com> wrote in message
news:B5Qsb.35043$vn.76897@sea-read.news.verio.net...
> I've production sql server 7 sp3 on windows NT. I had a 8GB data file of
> which 5GB were used and 3GB were unused. I wanted to take back the unused
> 3GB.
> So I did the following with EM GUI:
> 1. I tried to "truncate fre space from end of the file". Didn't truncate
> the file. I believe there was no empty space at the end of the file.
> 2. Next I chose the option to "shrink file to 5GB". And to my horror the
> data file instead of taking just 5GB took the empty spaces also and the

size
> of the used data file went to 8GB.
> Any idea what's going on?
> TIA,
> SP
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 07:47 PM
SP
 
Posts: n/a
Default Re: shrink file tool from EM took all the empty space allocated to data file

Thanks Tibor. Though we keep just the image file name we have text columns,
but not many. Looks like i should test with sp4. Thanks a lot.
Sp
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@corner stone.se>
wrote in message news:%23L1qOYhqDHA.2592@TK2MSFTNGP10.phx.gbl...
> Do you have text and image data? If so, it might be:
> http://support.microsoft.com/default...27&Product=sql
>
> I suggest you search KB for SQL Server for the word "shrink", I got hit on
> number of KB articles.
>
> --
> Tibor Karaszi, SQL Server MVP
> Archive at:
>

http://groups.google.com/groups?oi=d...blic.sqlserver
>
>
> "SP" <sdpantDeleteThisToReply@yahoo.com> wrote in message
> news:B5Qsb.35043$vn.76897@sea-read.news.verio.net...
> > I've production sql server 7 sp3 on windows NT. I had a 8GB data file

of
> > which 5GB were used and 3GB were unused. I wanted to take back the

unused
> > 3GB.
> > So I did the following with EM GUI:
> > 1. I tried to "truncate fre space from end of the file". Didn't

truncate
> > the file. I believe there was no empty space at the end of the file.
> > 2. Next I chose the option to "shrink file to 5GB". And to my horror

the
> > data file instead of taking just 5GB took the empty spaces also and the

> size
> > of the used data file went to 8GB.
> > Any idea what's going on?
> > TIA,
> > SP
> >
> >

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com