Re: DataFile
- From: "Joh" <joh@xxxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 16:57:36 -0400
Year Space Unused
2001 - 190432 KB
2002 - 2592 KB
2003 - 2800 KB
2004 - 1160 KB
2005 - 984 KB
what I do now ?
"David Gugick" <davidg-nospam@xxxxxxxxxx> wrote in message
news:ecmhPgdSFHA.2384@xxxxxxxxxxxxxxxxxxxxxxx
> Joh wrote:
> > Select * into MedicalHistory_2001 from MedicalHistory where
> > year(Creationdate) = 2001
> >
> > Select * into MedicalHistory_2002 from MedicalHistory where
> > year(Creationdate) = 2002
> >
> > Select * into MedicalHistory_2003 from MedicalHistory where
> > year(Creationdate) = 2003
> >
> > Before using the above three commands my 'Health_Data' DataFile size
> > is 3GB but now its 8.5GB, can I shrink the datafile ?
> >
> > I have used the following command but doesn't effect.
> >
> > backup log Health with truncate_only
> > dbcc shrinkfile('Health_Log',EmptyFile)
> > dbcc shrinkfile('Health_Data')
> >
> > Any guidance?
> >
> > Thanks in advance.
>
> Did you drop those tables? How large is each table? Run the following
> and report back:
>
> exec sp_spaceused -- what's the "unused" portion?
> exec sp_spaceused MedicalHistory_2001 -- what's the "unused" portion?
> exec sp_spaceused MedicalHistory_2002 -- what's the "unused" portion?
> exec sp_spaceused MedicalHistory_2003 -- what's the "unused" portion?
>
>
> --
> David Gugick
> Imceda Software
> www.imceda.com
>
.
- Follow-Ups:
- Re: DataFile
- From: David Gugick
- Re: DataFile
- References:
- DataFile
- From: Joh
- Re: DataFile
- From: David Gugick
- DataFile
- Prev by Date: Re: Partioning the table and View
- Next by Date: Re: Partioning the table and View
- Previous by thread: Re: DataFile
- Next by thread: Re: DataFile
- Index(es):
Relevant Pages
|